I am having problems running Django with settings.py options elsewhere
I have a folder setting with test.py as a copy of settings.py
The folder is laid out as
models.py
settings.py
setting/
test.py
this one works with default value
SetEnv DJANGO_SETTINGS_MODULE myproject.settings
python manage.py syncdb --settings="myproject.settings"
this does not work if tring use the file in a subdirectory
SetEnv DJANGO_SETTINGS_MODULE myproject.setting.test
python manage.py syncdb --settings="myproject.setting.test"
Mistake
Error: Could not import settings 'myproject.setting.test' (Is it on sys.path?
Does it have syntax errors?): No module named setting.test
bocca source
share