Skip to content

Instantly share code, notes, and snippets.

@robhudson
Created May 28, 2009 14:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robhudson/119320 to your computer and use it in GitHub Desktop.
Save robhudson/119320 to your computer and use it in GitHub Desktop.
Cleaned up and alphabetical settings
import os
PROJECT_PATH = os.path.realpath(os.path.dirname(__file__))
ADMINS = (('Your Name', 'your_email@domain.com'),)
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