Created
May 28, 2009 14:06
-
-
Save robhudson/119320 to your computer and use it in GitHub Desktop.
Cleaned up and alphabetical settings
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
import os | |
PROJECT_PATH = os.path.realpath(os.path.dirname(__file__)) | |
ADMINS = (('Your Name', '[email protected]'),) | |
ADMIN_MEDIA_PREFIX = '/static/admin/' | |
DATABASES = { | |
'default': { | |
'ENGINE': 'django.db.backends.postgresql_psycopg2', | |
'NAME': '', | |
'USER': '', | |
'PASSWORD': '', | |
'HOST': '', | |
} | |
} | |
DEBUG = False | |
INSTALLED_APPS = ( | |
'django.contrib.admin', | |
'django.contrib.auth', | |
'django.contrib.contenttypes', | |
'django.contrib.sessions', | |
'django.contrib.sites', | |
) | |
INTERNAL_IPS = ('127.0.0.1',) | |
MEDIA_ROOT = os.path.join(PROJECT_PATH, os.pardir, 'media') | |
MEDIA_URL = '/media/' | |
MIDDLEWARE_CLASSES = ( | |
'django.middleware.common.CommonMiddleware', | |
'django.contrib.sessions.middleware.SessionMiddleware', | |
'django.middleware.csrf.CsrfViewMiddleware', | |
# Anything after transaction middleware is one transaction per request | |
'django.middleware.transaction.TransactionMiddleware', | |
'django.contrib.auth.middleware.AuthenticationMiddleware', | |
) | |
ROOT_URLCONF = 'your_project.urls' | |
SECRET_KEY = '' | |
SITE_ID = 1 | |
TEMPLATE_CONTEXT_PROCESSORS = ( | |
'django.contrib.auth.context_processors.auth', | |
'django.core.context_processors.media', | |
'django.core.context_processors.request', | |
) | |
TEMPLATE_DEBUG = DEBUG | |
TEMPLATE_DIRS = (os.path.join(PROJECT_PATH, 'templates'),) | |
TIME_ZONE = 'America/Chicago' | |
USE_I18N = True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment