Django version is not Right

Bug #1784269 reported by zhangguangzhou on 2018-07-30
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Community Project
Undecided
Unassigned

Bug Description

when I install Mistral Dashoard on the openstack queens。In the requirements.txt,i can see Django’s version <2.0,>=1.11,when I install Django 1.11,the dashboard will be error:

[Mon Jul 30 11:22:18.435287 2018] [wsgi:error] [pid 13451:tid 140238254163712] File "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py", line 216, in render
[Mon Jul 30 11:22:18.435294 2018] [wsgi:error] [pid 13451:tid 140238254163712] return template.render(context)
[Mon Jul 30 11:22:18.435299 2018] [wsgi:error] [pid 13451:tid 140238254163712] File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 209, in render
[Mon Jul 30 11:22:18.435305 2018] [wsgi:error] [pid 13451:tid 140238254163712] return self._render(context)
[Mon Jul 30 11:22:18.435310 2018] [wsgi:error] [pid 13451:tid 140238254163712] File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 199, in _render
[Mon Jul 30 11:22:18.435316 2018] [wsgi:error] [pid 13451:tid 140238254163712] return self.nodelist.render(context)
[Mon Jul 30 11:22:18.435321 2018] [wsgi:error] [pid 13451:tid 140238254163712] File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 990, in render
[Mon Jul 30 11:22:18.435327 2018] [wsgi:error] [pid 13451:tid 140238254163712] bit = node.render_annotated(context)
[Mon Jul 30 11:22:18.435334 2018] [wsgi:error] [pid 13451:tid 140238254163712] File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 957, in render_annotated
[Mon Jul 30 11:22:18.435338 2018] [wsgi:error] [pid 13451:tid 140238254163712] return self.render(context)
[Mon Jul 30 11:22:18.435341 2018] [wsgi:error] [pid 13451:tid 140238254163712] File "/usr/lib/python2.7/dist-packages/compressor/templatetags/compress.py", line 127, in render
[Mon Jul 30 11:22:18.435345 2018] [wsgi:error] [pid 13451:tid 140238254163712] return self.render_compressed(context, self.kind, self.mode, forced=forced)
[Mon Jul 30 11:22:18.435348 2018] [wsgi:error] [pid 13451:tid 140238254163712] File "/usr/lib/python2.7/dist-packages/compressor/templatetags/compress.py", line 86, in render_compressed
[Mon Jul 30 11:22:18.435352 2018] [wsgi:error] [pid 13451:tid 140238254163712] return self.render_offline(context)
[Mon Jul 30 11:22:18.435355 2018] [wsgi:error] [pid 13451:tid 140238254163712] File "/usr/lib/python2.7/dist-packages/compressor/templatetags/compress.py", line 71, in render_offline
[Mon Jul 30 11:22:18.435359 2018] [wsgi:error] [pid 13451:tid 140238254163712] 'You may need to run "python manage.py compress".' % key)
[Mon Jul 30 11:22:18.435362 2018] [wsgi:error] [pid 13451:tid 140238254163712] OfflineGenerationError: You have offline compression enabled but key "be66551c031c41709fbcf10a6e840b60" is missing from offline manifest. You may need to run "python manage.py compress".

I fix this error by usering Django 1.8 replace Django 1.11。But,there is a new error:

[Mon Jul 30 09:43:15.771862 2018] [authz_core:error] [pid 25432:tid 140162885474048] [client 192.168.100.150:55825] AH01630: client denied by server configuration: /usr/bin/keystone-wsgi-public, referer: http://controller/horizon/auth/login/?next=/horizon/
[Mon Jul 30 09:43:17.935533 2018] [wsgi:error] [pid 25418:tid 140163005880064] [remote 192.168.100.150:17988] mod_wsgi (pid=25418): Exception occurred processing WSGI script '/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi'.
[Mon Jul 30 09:43:17.935621 2018] [wsgi:error] [pid 25418:tid 140163005880064] [remote 192.168.100.150:17988] Traceback (most recent call last):
[Mon Jul 30 09:43:17.935642 2018] [wsgi:error] [pid 25418:tid 140163005880064] [remote 192.168.100.150:17988] File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 170, in __call__
[Mon Jul 30 09:43:17.935670 2018] [wsgi:error] [pid 25418:tid 140163005880064] [remote 192.168.100.150:17988] self.load_middleware()
[Mon Jul 30 09:43:17.935681 2018] [wsgi:error] [pid 25418:tid 140163005880064] [remote 192.168.100.150:17988] File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 52, in load_middleware
[Mon Jul 30 09:43:17.935698 2018] [wsgi:error] [pid 25418:tid 140163005880064] [remote 192.168.100.150:17988] mw_instance = mw_class()
[Mon Jul 30 09:43:17.935708 2018] [wsgi:error] [pid 25418:tid 140163005880064] [remote 192.168.100.150:17988] File "/usr/local/lib/python2.7/dist-packages/django/middleware/locale.py", line 24, in __init__
[Mon Jul 30 09:43:17.935724 2018] [wsgi:error] [pid 25418:tid 140163005880064] [remote 192.168.100.150:17988] for url_pattern in get_resolver(None).url_patterns:
[Mon Jul 30 09:43:17.935734 2018] [wsgi:error] [pid 25418:tid 140163005880064] [remote 192.168.100.150:17988] File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 402, in url_patterns
[Mon Jul 30 09:43:17.935750 2018] [wsgi:error] [pid 25418:tid 140163005880064] [remote 192.168.100.150:17988] patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
[Mon Jul 30 09:43:17.935760 2018] [wsgi:error] [pid 25418:tid 140163005880064] [remote 192.168.100.150:17988] File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 396, in urlconf_module
[Mon Jul 30 09:43:17.935775 2018] [wsgi:error] [pid 25418:tid 140163005880064] [remote 192.168.100.150:17988] self._urlconf_module = import_module(self.urlconf_name)
[Mon Jul 30 09:43:17.935784 2018] [wsgi:error] [pid 25418:tid 140163005880064] [remote 192.168.100.150:17988] File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
[Mon Jul 30 09:43:17.935800 2018] [wsgi:error] [pid 25418:tid 140163005880064] [remote 192.168.100.150:17988] __import__(name)
[Mon Jul 30 09:43:17.935810 2018] [wsgi:error] [pid 25418:tid 140163005880064] [remote 192.168.100.150:17988] File "/usr/share/openstack-dashboard/openstack_dashboard/urls.py", line 42, in <module>
[Mon Jul 30 09:43:17.935825 2018] [wsgi:error] [pid 25418:tid 140163005880064] [remote 192.168.100.150:17988] url(r'', include(horizon.urls)),
[Mon Jul 30 09:43:17.935834 2018] [wsgi:error] [pid 25418:tid 140163005880064] [remote 192.168.100.150:17988] File "/usr/local/lib/python2.7/dist-packages/django/conf/urls/__init__.py", line 34, in include
[Mon Jul 30 09:43:17.935895 2018] [wsgi:error] [pid 25418:tid 140163005880064] [remote 192.168.100.150:17988] patterns = getattr(urlconf_module, 'urlpatterns', urlconf_module)
[Mon Jul 30 09:43:17.935913 2018] [wsgi:error] [pid 25418:tid 140163005880064] [remote 192.168.100.150:17988] File "/usr/local/lib/python2.7/dist-packages/django/utils/functional.py", line 226, in inner
[Mon Jul 30 09:43:17.936054 2018] [wsgi:error] [pid 25418:tid 140163005880064] [remote 192.168.100.150:17988] self._setup()
[Mon Jul 30 09:43:17.936068 2018] [wsgi:error] [pid 25418:tid 140163005880064] [remote 192.168.100.150:17988] File "/usr/local/lib/python2.7/dist-packages/django/utils/functional.py", line 359, in _setup
[Mon Jul 30 09:43:17.936097 2018] [wsgi:error] [pid 25418:tid 140163005880064] [remote 192.168.100.150:17988] self._wrapped = self._setupfunc()
[Mon Jul 30 09:43:17.936108 2018] [wsgi:error] [pid 25418:tid 140163005880064] [remote 192.168.100.150:17988] File "/usr/share/openstack-dashboard/horizon/base.py", line 836, in url_patterns
[Mon Jul 30 09:43:17.936369 2018] [wsgi:error] [pid 25418:tid 140163005880064] [remote 192.168.100.150:17988] return self._urls()[0]
[Mon Jul 30 09:43:17.936383 2018] [wsgi:error] [pid 25418:tid 140163005880064] [remote 192.168.100.150:17988] File "/usr/share/openstack-dashboard/horizon/base.py", line 870, in _urls
[Mon Jul 30 09:43:17.936402 2018] [wsgi:error] [pid 25418:tid 140163005880064] [remote 192.168.100.150:17988] include(dash._decorated_urls)))
[Mon Jul 30 09:43:17.936412 2018] [wsgi:error] [pid 25418:tid 140163005880064] [remote 192.168.100.150:17988] File "/usr/share/openstack-dashboard/horizon/base.py", line 547, in _decorated_urls
[Mon Jul 30 09:43:17.936427 2018] [wsgi:error] [pid 25418:tid 140163005880064] [remote 192.168.100.150:17988] include(panel._decorated_urls)))
[Mon Jul 30 09:43:17.936436 2018] [wsgi:error] [pid 25418:tid 140163005880064] [remote 192.168.100.150:17988] File "/usr/share/openstack-dashboard/horizon/base.py", line 319, in _decorated_urls
[Mon Jul 30 09:43:17.936451 2018] [wsgi:error] [pid 25418:tid 140163005880064] [remote 192.168.100.150:17988] urlpatterns = self._get_default_urlpatterns()
[Mon Jul 30 09:43:17.936461 2018] [wsgi:error] [pid 25418:tid 140163005880064] [remote 192.168.100.150:17988] File "/usr/share/openstack-dashboard/horizon/base.py", line 121, in _get_default_urlpatterns
[Mon Jul 30 09:43:17.936477 2018] [wsgi:error] [pid 25418:tid 140163005880064] [remote 192.168.100.150:17988] urls_mod = import_module('.urls', package_string)
[Mon Jul 30 09:43:17.936486 2018] [wsgi:error] [pid 25418:tid 140163005880064] [remote 192.168.100.150:17988] File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
[Mon Jul 30 09:43:17.936500 2018] [wsgi:error] [pid 25418:tid 140163005880064] [remote 192.168.100.150:17988] __import__(name)
[Mon Jul 30 09:43:17.936509 2018] [wsgi:error] [pid 25418:tid 140163005880064] [remote 192.168.100.150:17988] File "/usr/local/lib/python2.7/dist-packages/mistraldashboard/tasks/urls.py", line 17, in <module>
[Mon Jul 30 09:43:17.936552 2018] [wsgi:error] [pid 25418:tid 140163005880064] [remote 192.168.100.150:17988] from mistraldashboard.tasks import views
[Mon Jul 30 09:43:17.936565 2018] [wsgi:error] [pid 25418:tid 140163005880064] [remote 192.168.100.150:17988] File "/usr/local/lib/python2.7/dist-packages/mistraldashboard/tasks/views.py", line 15, in <module>
[Mon Jul 30 09:43:17.936631 2018] [wsgi:error] [pid 25418:tid 140163005880064] [remote 192.168.100.150:17988] from django.urls import reverse
[Mon Jul 30 09:43:17.936654 2018] [wsgi:error] [pid 25418:tid 140163005880064] [remote 192.168.100.150:17988] ImportError: No module named urls

update Django to 1.11 can fix this error.what should I do?

zhangguangzhou (moper) wrote :
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments