← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1133609] Re: horizon as setup by devstack does not work with django 1.5

 

** Changed in: horizon
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1133609

Title:
  horizon as setup by devstack does not work with django 1.5

Status in OpenStack Dashboard (Horizon):
  Fix Released

Bug description:
  django 1.5 shipped today... yay!

  it breaks horizon as setup by devstack horribly... boo!

  representative log messages look as follows:

  stack@devstack-1361907125:~/devstack$ [Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1] mod_wsgi (pid=4960): Exception occurred processing WSGI script '/opt/stack/new/horizon/openstack_dashboard/wsgi/django.wsgi'.
  [Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1] Traceback (most recent call last):
  [Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 236, in __call__
  [Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1]     self.load_middleware()
  [Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 45, in load_middleware
  [Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1]     for middleware_path in settings.MIDDLEWARE_CLASSES:
  [Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 52, in __getattr__
  [Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1]     self._setup(name)
  [Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 47, in _setup
  [Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1]     self._wrapped = Settings(settings_module)
  [Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 130, in __init__
  [Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1]     mod = importlib.import_module(self.SETTINGS_MODULE)
  [Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line 35, in import_module
  [Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1]     __import__(name)
  [Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1]   File "/opt/stack/new/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/settings.py", line 177, in <module>
  [Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1]     from local.local_settings import *
  [Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1]   File "/opt/stack/new/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/local/local_settings.py", line 46, in <module>
  [Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1]     from horizon.utils import secret_key
  [Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1]   File "/opt/stack/new/horizon/openstack_dashboard/wsgi/../../horizon/__init__.py", line 29, in <module>
  [Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1]     from horizon.base import Horizon, Dashboard, Panel, PanelGroup
  [Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1]   File "/opt/stack/new/horizon/openstack_dashboard/wsgi/../../horizon/base.py", line 42, in <module>
  [Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1]     from horizon import conf
  [Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1]   File "/opt/stack/new/horizon/openstack_dashboard/wsgi/../../horizon/conf/__init__.py", line 5, in <module>
  [Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1]     from .default import HORIZON_CONFIG as DEFAULT_CONFIG
  [Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1]   File "/opt/stack/new/horizon/openstack_dashboard/wsgi/../../horizon/conf/default.py", line 13, in <module>
  [Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1]     'user_home': settings.LOGIN_REDIRECT_URL,
  [Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 52, in __getattr__
  [Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1]     self._setup(name)
  [Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 47, in _setup
  [Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1]     self._wrapped = Settings(settings_module)
  [Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1]   File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 150, in __init__
  [Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1]     raise ImproperlyConfigured("The SECRET_KEY setting must not be empty.")
  [Tue Feb 26 19:49:01 2013] [error] [client 127.0.0.1] ImproperlyConfigured: The SECRET_KEY setting must not be empty.

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1133609/+subscriptions