Skip to content

Instantly share code, notes, and snippets.

@durgeshm
Created May 11, 2011 15:48
Show Gist options
  • Save durgeshm/966722 to your computer and use it in GitHub Desktop.
Save durgeshm/966722 to your computer and use it in GitHub Desktop.
Django - use environment specific settings.py
# Add this to the bottom of your settings.py
try:
from local_settings import *
except ImportError:
pass
# Now you can create, a specific local_settings.py on other servers
# and override any setting as necessary.
# Make sure to add local_settings.py to your .gitignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment