Django 1.5b1 raises "The SECRET_KEY setting must not be empty." even if it is set in an imported file
|Reported by:||nick@…||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
My SECRET_KEY lives in a file called settings_common.py that is imported on the first line of settings.py at the various stages of development using:
from settings_common import *
settings.py then contains DATABASES and DEBUG settings only. This worked fine in Django 1.4 however Django 1.5b1 is saying that SECRET_KEY is not set even though it is.
I have added
statements around the SECRET_KEY checker in django/conf/init.py and if the ImproperlyConfigured exception is commented out they display the key properly. However if the exception is allowed to raise, they appear blank.