Changes between Version 26 and Version 27 of SplitSettings
- Timestamp:
- Jun 14, 2012, 1:29:53 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SplitSettings
v26 v27 17 17 files. Take that opportunity to showcase your individualism. 18 18 19 Some of the examples listed below need to be modified for compatibility with Django 1.4 and later. They are marked with "Django <1.4" in the title. 20 19 21 20 22 == Links to discussions == … … 37 39 For a similar but more transparent solution see [[SplitSettings#foxsmethod|fox's method]] 38 40 39 `/etc/whatever/settings.ini` 41 `/etc/whatever/settings.ini` (Django <1.4) 40 42 {{{ 41 43 [database] … … 81 83 82 84 83 `/path/to/whatever/settings.py` 85 `/path/to/whatever/settings.py` (Django <1.4) 84 86 {{{ 85 87 #!python … … 123 125 Keep application wide, unsensitive settings and sane defaults in your normal `settings.py` file. 124 126 125 /path/to/whatever/settings.py 127 `/path/to/whatever/settings.py` (Django <1.4) 126 128 {{{ 127 129 #!python … … 164 166 which could look something like this. 165 167 166 `/path/to/whatever/settings_local.py` 168 `/path/to/whatever/settings_local.py` (Django <1.4) 167 169 {{{ 168 170 #!python … … 229 231 This settings loader will import the appropriate settings module. I store my settings files in a `config` directory in the root of the project. 230 232 231 `/path/to/project/config/prod.py` 233 `/path/to/project/config/prod.py` (Django <1.4) 232 234 {{{ 233 235 #!python … … 252 254 }}} 253 255 254 `/path/to/project/config/user1.py` 256 `/path/to/project/config/user1.py` (Django <1.4) 255 257 {{{ 256 258 #!python