Code

Changes between Version 26 and Version 27 of SplitSettings


Ignore:
Timestamp:
06/13/12 23:29:53 (2 years ago)
Author:
akaihola
Comment:

added notes about Django >=1.4 incompatibilities in examples

Legend:

Unmodified
Added
Removed
Modified
  • SplitSettings

    v26 v27  
    1717  files. Take that opportunity to showcase your individualism. 
    1818 
     19Some 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 
    1921 
    2022== Links to discussions == 
     
    3739For a similar but more transparent solution see [[SplitSettings#foxsmethod|fox's method]] 
    3840 
    39 `/etc/whatever/settings.ini` 
     41`/etc/whatever/settings.ini` (Django <1.4) 
    4042{{{ 
    4143[database] 
     
    8183 
    8284 
    83 `/path/to/whatever/settings.py` 
     85`/path/to/whatever/settings.py` (Django <1.4) 
    8486{{{ 
    8587#!python 
     
    123125Keep application wide, unsensitive settings and sane defaults in your normal `settings.py` file. 
    124126 
    125 /path/to/whatever/settings.py 
     127`/path/to/whatever/settings.py` (Django <1.4) 
    126128{{{ 
    127129#!python 
     
    164166which could look something like this. 
    165167 
    166 `/path/to/whatever/settings_local.py` 
     168`/path/to/whatever/settings_local.py` (Django <1.4) 
    167169{{{ 
    168170#!python 
     
    229231This settings loader will import the appropriate settings module. I store my settings files in a `config` directory in the root of the project. 
    230232 
    231 `/path/to/project/config/prod.py` 
     233`/path/to/project/config/prod.py` (Django <1.4) 
    232234{{{ 
    233235#!python 
     
    252254}}} 
    253255 
    254 `/path/to/project/config/user1.py` 
     256`/path/to/project/config/user1.py` (Django <1.4) 
    255257{{{ 
    256258#!python