Ticket #303 (closed defect: invalid)
Respect DJANGO_SETTINGS_MODULE, --settings
|Reported by:||anonymous||Owned by:||andrew|
I have two settings profiles: one for production (settings) and one for development (settings.dev). I am seeing two problems, which seem related but may be separate:
$ export DJANGO_SETTINGS_MODULE="settings.dev"
$ ./manage.py migrate myapp my_migration
does not use settings.dev. In my case, I'm using a separate database for development. The migration is applied to my production database instead of the development.
./manage.py migrate --settings="settings.dev" ...
Unknown command: 'migrate'