Source

caktus-deployment / django-template / PROJECT_NAME / settings.py

Full commit
# Django settings for the Caktus Website.

from os import path

DEBUG = False
TEMPLATE_DEBUG = DEBUG

PROJECT_PATH = path.abspath('%s' % path.dirname(__file__))

ADMINS = (
    ('Caktus Team', 'team@caktusgroup.com'),
)
MANAGERS = ADMINS

USE_I18N = True
TIME_ZONE = 'America/New_York'
LANGUAGE_CODE = 'en-US'

SITE_ID = 1

URL_PREFIX = ''
ROOT_URLCONF = 'PROJECT_NAME.urls'
MEDIA_URL = '/%smedia/' % URL_PREFIX
MEDIA_ROOT = '%s/media/' % PROJECT_PATH
ADMIN_MEDIA_PREFIX = '/admin-media/'


EMAIL_HOST = 'mail.caktusgroup.com'


INTERNAL_IPS = ['127.0.0.1']

TEMPLATE_CONTEXT_PROCESSORS = (
    'django.core.context_processors.auth',
    'django.core.context_processors.debug',
    'django.core.context_processors.i18n',
    'django.core.context_processors.media',
    'django.core.context_processors.request',
    'django.contrib.messages.context_processors.messages',
)

TEMPLATE_LOADERS = (
    'django.template.loaders.filesystem.load_template_source',
    'django.template.loaders.app_directories.load_template_source',
#   'django.template.loaders.eggs.load_template_source',
)

MIDDLEWARE_CLASSES = [
    # 'django.middleware.http.ConditionalGetMiddleware',
    # 'django.contrib.csrf.middleware.CsrfMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.middleware.cache.UpdateCacheMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.cache.FetchFromCacheMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
]

INSTALLED_APPS = [
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.admin',
    'django.contrib.humanize',
    'django.contrib.markup',
    'django.contrib.webdesign',
    'django.contrib.sitemaps',
    'robots',
    'google_analytics',
    'treenav',
    'pagelets',
]

TEMPLATE_DIRS = (
    '%s/templates' % PROJECT_PATH,
)

GOOGLE_ANALYTICS_MODEL = True