Created
May 5, 2010 14:10
-
-
Save danielstocks/390818 to your computer and use it in GitHub Desktop.
A few things that almost always goes into my 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
from os.path import abspath, dirname, join as pjoin | |
PROJ_ROOT = abspath(dirname(__file__)) | |
DEFAULT_EMAIL_FROM = 'abc@edf.gh' | |
ORDER_EMAIL_TO = 'abc@edf.gh' | |
MEDIA_ROOT = pjoin(PROJ_ROOT, 'media') | |
MEDIA_URL = '/media/' | |
ADMIN_MEDIA_PREFIX = '/media/admin/' | |
TEMPLATE_DIRS = ( | |
pjoin(PROJ_ROOT, 'templates'), | |
) | |
try: | |
from local_settings import * | |
except ImportError: | |
pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment