Skip to content

Instantly share code, notes, and snippets.

@zackdever
Created October 4, 2011 01:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zackdever/1260693 to your computer and use it in GitHub Desktop.
Save zackdever/1260693 to your computer and use it in GitHub Desktop.
extend django settings.py variables in local_settings.py
# source: http://www.robgolding.com/blog/2010/05/03/extending-settings-variables-with-local_settings-py-in-django/
# settings.py
try:
LOCAL_SETTINGS
except NameError:
try:
from local_settings import *
except ImportError:
pass
# local_settings.py
LOCAL_SETTINGS = True
from settings import *
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment