Created
May 11, 2011 15:48
-
-
Save durgeshm/966722 to your computer and use it in GitHub Desktop.
Django - use environment specific settings.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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