Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: cc53799a1a
Fetching contributors…

Cannot retrieve contributors at this time

50 lines (39 sloc) 1.118 kb
# 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']
Jump to Line
Something went wrong with that request. Please try again.