Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

67 lines (54 sloc) 1.899 kb
# Local settings for production
from settings import *
# Make this unique, and don't share it with anybody.
SECRET_KEY = "BADGER BADGER BADGER BADGER MUSHROOM MUSHROOM"
# create an app at: http://dev.twitter.com/apps
TWITTER_CONSUMER_KEY = "OAUTH KEY NEEDED"
TWITTER_CONSUMER_SECRET = "OAUTH SECRET NEEDED"
# create an app at: http://www.facebook.com/developers/apps.php
FACEBOOK_CONSUMER_KEY = "OAUTH KEY NEEDED"
FACEBOOK_CONSUMER_SECRET = "OAUTH SECRET NEEDED"
DATABASE_ROUTERS = ('multidb.MasterSlaveRouter',)
DATABASES = {
"default": {
"ENGINE": "django.db.backends.mysql",
"NAME": "badger",
"USER": "badger",
"PASSWORD": "badger",
"HOST": "127.0.0.1",
"PORT": "3306",
},
"shadow-1": {
"ENGINE": "django.db.backends.mysql",
"NAME": "badger",
"USER": "badger",
"PASSWORD": "badger",
"HOST": "127.0.0.1",
"PORT": "3306",
},
# "shadow-2"
}
SLAVE_DATABASES = ['shadow-1',] # 'shadow-2']
CACHE_BACKEND = 'memcached://127.0.0.1:11211/'
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'localhost'
EMAIL_PORT = '25'
EMAIL_HOST_USER = ''
EMAIL_HOST_PASSWORD = ''
EMAIL_USE_TLS = False
DEBUG = False
DEV = False
SERVE_MEDIA = DEBUG
EMAIL_DEBUG = DEBUG
# Absolute path to the directory that holds media.
# Example: "/home/media/media.lawrence.com/"
MEDIA_ROOT = os.path.join(PROJECT_ROOT, "site_media", "media")
# URL that handles the media served from MEDIA_ROOT.
# Example: "http://media.lawrence.com"
MEDIA_URL = "/site_media/media/"
# Absolute path to the directory that holds static files like app media.
# Example: "/home/media/media.lawrence.com/apps/"
STATIC_ROOT = os.path.join(PROJECT_ROOT, "site_media", "static")
# URL that handles the static files like app media.
# Example: "http://media.lawrence.com"
STATIC_URL = "/site_media/static/"
Jump to Line
Something went wrong with that request. Please try again.