Created
June 15, 2012 21:56
-
-
Save greylurk/2938900 to your computer and use it in GitHub Desktop.
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
# Most normal settings | |
DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage' | |
STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage' | |
try: | |
execfile(os.path.join("/etc/project", "settings_local.py")) | |
except IOError: | |
execfile(os.path.join(SITE_ROOT, 'settings_local.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
SITE_ID=1 | |
DATABASE = { | |
..... | |
} |
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
SITE_ID=3 | |
DATABASE = { | |
..... | |
} |
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
SITE_ID=2 | |
DATABASE = { | |
..... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
And in production, we copy settings_local.production.py to /etc/project, In staging, settings_loca.staging.py to /etc/project, and so on.