import os DEBUG = False TEMPLATE_DEBUG = DEBUG ADMINS = ( ('Stephen McQuay', 'stephen@mcquay.me'), ) MANAGERS = ADMINS ALLOWED_HOSTS = ['mmg.mcquay.me', 'midna.local'] TIME_ZONE = 'America/Chicago' LANGUAGE_CODE = 'en-us' SITE_ID = 1 USE_I18N = True USE_L10N = True USE_TZ = True MEDIA_ROOT = '' MEDIA_URL = '' STATIC_ROOT = os.path.expanduser('~/tmp/mmg') STATIC_URL = 'http://tmp.mcquay.me/mmg/' STATICFILES_DIRS = ( os.path.expanduser('~/src/mmg/static'), ) STATICFILES_FINDERS = ( 'django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder', ) SECRET_KEY = os.environ.get('MMG_SECRET_KEY') TEMPLATE_LOADERS = ( 'django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader', ) MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', ) ROOT_URLCONF = 'mmg.urls' WSGI_APPLICATION = 'mmg.wsgi.application' TEMPLATE_DIRS = ( os.path.expanduser('~/src/mmg/templates'), ) INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', ) SESSION_ENGINE = 'django.contrib.sessions.backends.signed_cookies' LOGGING = { 'version': 1, 'disable_existing_loggers': False, 'filters': { 'require_debug_false': { '()': 'django.utils.log.RequireDebugFalse' } }, 'handlers': { 'mail_admins': { 'level': 'ERROR', 'filters': ['require_debug_false'], 'class': 'django.utils.log.AdminEmailHandler' } }, 'loggers': { 'django.request': { 'handlers': ['mail_admins'], 'level': 'ERROR', 'propagate': True, }, } }