Source

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

Full commit
from PROJECT_NAME.settings import *
from PROJECT_NAME.passwords import *

DEBUG = True
TEMPLATE_DEBUG = DEBUG
SERVE_STATIC_MEDIA = False

EMAIL_HOST = 'localhost'
DEFAULT_FROM_EMAIL = 'no-reply@norton.caktusgroup.com'

URL_PREFIX = ''
MEDIA_URL = '/%smedia/' % URL_PREFIX
ADMIN_MEDIA_PREFIX = '/%sadmin-media/' % URL_PREFIX

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

DATABASE_ENGINE = 'postgresql_psycopg2'           # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
DATABASE_NAME = ''             # Or path to database file if using sqlite3.
DATABASE_USER = ''             # Not used with sqlite3.
DATABASE_HOST = 'localhost'

"""
CACHE_BACKEND = 'memcached://127.0.0.1:11211/'
CACHE_MIDDLEWARE_SECONDS = 10
CACHE_MIDDLEWARE_KEY_PREFIX = 'PROJECT_NAME_staging_'
CACHE_MIDDLEWARE_ANONYMOUS_ONLY = True
SESSION_ENGINE = "django.contrib.sessions.backends.cache"
"""

MIDDLEWARE_CLASSES.insert(0, 'debug_toolbar.middleware.DebugToolbarMiddleware')

INSTALLED_APPS += [
    'debug_toolbar',
]

INTERNAL_IPS = []

DEBUG_TOOLBAR_CONFIG = {
    'INTERCEPT_REDIRECTS': False,
}