local_settings override for project settings

1
2
3
4
try:
    from local_settings import *
except ImportError, exp:
    pass

More like this

  1. Read settings from local_settings.py by statico 3 years, 5 months ago
  2. 3rd Party App Directories by thalin 4 years, 11 months ago
  3. Template context processor to make the settings.py values available in templates by tamizhgeek 2 years, 1 month ago
  4. manage.py with magic python path by bikeshedder 6 years ago
  5. Load local settings by ofalk 4 years ago

Comments

tenni (on March 13, 2008):

I love this snippet and have actually been using it for a while now… before it's posting here!

I first heard about it when Michael Trier mentioned it, saying that Magus suggested it in the IRC.

Thanks Magus, great timesaver.

#

bjornkri (on March 13, 2008):

Ah, that's perfect! Much more elegant than my method... which is too embarrassing to mention here.

#

(Forgotten your password?)