yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #01445
[Bug 1154564] Re: Circular dependencies in dashboard settings
** 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/1154564
Title:
Circular dependencies in dashboard settings
Status in OpenStack Dashboard (Horizon):
Fix Released
Bug description:
Importing horizon.utils from dashboard local_settings.py to generate
SECRET_KEY results in a sequence of imports, and horizon.conf.default
module gets imported at some point. During initialization of default
HORIZON_CONFIG this module uses settings.LOGIN_REDIRECT_URL and
ugettext() call. Both of them need django settings to be ready to use,
therefore settings initialization starts again before it could finish.
Since Python processes module only when it is imported the first time,
this process stops, but the 'inner' settings object contains only
parameters that were set above the point of import of local_settings.
Therefore Django complains about missing SECRET_KEY when it processes
'inner' settings. Also, logging is configured twice: the first time with default
Django parameters and the second time with those specified in settings,
so effectively parameters are combined.
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1154564/+subscriptions