defining default settings for apps
|Reported by:||django@…||Owned by:||adrian|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I think django should have a simple and easy way for setting new variables in apps.
I suggest that a app/someapp/default_settings.py file would be imported when it exists and be handled like the global_settings.py
The patch hooks in after the installed_apps got deglobed and sets the default value from default_settings.py if it doesn't exist already in the user conf.
This way, adding new variables is very easy and uniform and apps can use the standard way without much checking for existence of keys.
Change History (16)
Changed 11 years ago by django@…
Changed 8 years ago by django@…
comment:7 Changed 8 years ago by django@…
- Summary changed from [patch] provide a standard way for new config variables in apps to defining default settings for apps
- Version changed from magic-removal to SVN
Changed 8 years ago by shai
comment:8 Changed 8 years ago by shai
- Resolution wontfix deleted
- Status changed from closed to reopened
comment:9 Changed 8 years ago by jacob
- Resolution set to wontfix
- Status changed from reopened to closed