setup_environ assumes that settings module is called "settings"
|Reported by:||SmileyChris||Owned by:||adrian|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
In several of my apps, I use a settings_live module (which simply imports * from settings and overrides appropriately).
I can't use management.setup_environ() for a cron script I'm using because it relies on the settings module actually being called settings (it's hard coded)
Patch attached which fixes this.
Change History (5)
Changed 9 years ago by SmileyChris
comment:1 Changed 9 years ago by Simon G. <dev@…>
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Ready for checkin
comment:2 Changed 9 years ago by mtredinnick
- Resolution set to fixed
- Status changed from new to closed