Modify ↓
Ticket #303 (closed defect: invalid)
Respect DJANGO_SETTINGS_MODULE, --settings
| Reported by: | anonymous | Owned by: | andrew |
|---|---|---|---|
| Priority: | major | Milestone: | 0.7 |
| Component: | commands | Version: | 0.6.2 |
| Keywords: | Cc: |
Description
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'
Attachments
Change History
comment:2 Changed 3 years ago by andrew
Using --settings works for me on my dev box; did you forget to include south in settings.dev's installed apps?
Note: See
TracTickets for help on using
tickets.

That's odd, South uses the standard Django machinery for configuration. I'll check this.