Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 50 lines (39 sloc) 1.118 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
# Local settings
from settings import *
from os.path import abspath, dirname, join

# bug 609957: /admin pages should be served via https:
SESSION_COOKIE_SECURE = True

DEV = False # Set to False for production

SNIPPET_HTTP_MAX_AGE = 75
SNIPPET_MODEL_CACHE_TIMEOUT = 60 * 60 * 24

CACHE_BACKEND = 'memcached://127.0.0.1:11211/'

CACHE_MIDDLEWARE_SECONDS = SNIPPET_HTTP_MAX_AGE

SERVE_MEDIA = DEV
DEBUG = DEV
TEMPLATE_DEBUG = DEBUG
EMAIL_DEBUG = DEBUG

ADMINS += [
    ('l.m.orchard', 'lorchard@mozilla.com'),
]
MANAGERS = ADMINS

TIME_ZONE = 'America/Detroit'

DATABASE_ROUTERS = ('multidb.MasterSlaveRouter',)

DATABASES = {
    "default": {
        "ENGINE": "django.db.backends.mysql",
        "NAME": "homesnippets",
        "USER": "homesnippets",
        "PASSWORD": "homesnippets",
        "HOST": "127.0.0.1",
        "PORT": "3306",
    },
    "shadow-1": {
        "ENGINE": "django.db.backends.sqlite3",
        "NAME": "dev.db",
        "USER": "homesnippets",
        "PASSWORD": "homesnippets",
        "HOST": "127.0.0.1",
        "PORT": "3306",
    },
}
SLAVE_DATABASES = ['shadow-1',] # 'shadow-2']
Something went wrong with that request. Please try again.