Bug #3733
snf-manage --settings-dir not working
Status: | New | Start date: | 05/15/2013 | |
---|---|---|---|---|
Priority: | Low | Due date: | ||
Assignee: | Kostas Papadimitriou | % Done: | 0% |
|
Category: | Webproject | Spent time: | - | |
Target version: | 0.14.0 |
Description
To reproduce:
snf-manage --settings-dir=/etc/somewhere diffsettings | grep SYNNEFO_SETTINGS_DIR
It remains '/etc/synnefo'.
export SYNNEFO_SETTINGS_DIR=/etc/somewhere; snf-manage
works.
--settings-dir probably sets SYNNEFO_SETTINGS_DIR too late,
when django has already read the config
History
#1 Updated by Kostas Papadimitriou almost 11 years ago
- Assignee set to Kostas Papadimitriou
I also came across this bug yesterday.
It seems that the issue is caused due to the early call of
configure_logging inside webproject/manage.py. The function imports
synnefo.settings module to access SNF_MANAGE_LOGGING_SETUP variable.
This happens right before command options get resolved, causing
settings module to be improperly initialized.