Some further changes to local settings template.

master
Nick Sergeant 2013-01-13 23:21:31 -05:00
parent bd2954e193
commit e5f06d783d
1 changed files with 15 additions and 27 deletions

View File

@ -2,8 +2,11 @@ import os
from settings import INSTALLED_APPS
DEBUG = True
TEMPLATE_DEBUG = DEBUG
BASE_PATH = os.path.dirname(__file__)
PROJECT_PATH = os.path.abspath(os.path.dirname(__file__))
ADMINS = (
@ -31,7 +34,6 @@ MEDIA_ROOT = os.path.join(BASE_PATH, 'media/uploads')
MEDIA_URL = '/media/uploads/'
if DEBUG:
STATIC_URL = '/media/'
SECRET_KEY = ''
@ -41,30 +43,17 @@ SERVER_EMAIL = 'support@snipt.net'
EMAIL_BACKEND = 'postmark.django_backend.EmailBackend'
POSTMARK_API_KEY = ''
# Virtualenv
VIRTUALENV_PATH = ''
AMAZON_API_KEY = ''
AMAZON_API_SECRET = ''
STRIPE_API_KEY = ''
ENV_HOST = 'user@domain.com:22'
# Bugsnag
BUGSNAG = {
"api_key": "",
"project_root": PROJECT_PATH,
}
# HTTPS
if not DEBUG:
USE_HTTPS = True
SESSION_COOKIE_SECURE = True
CSRF_COOKIE_SECURE = True
USE_HTTPS = False
SESSION_COOKIE_SECURE = False
CSRF_COOKIE_SECURE = False
SESSION_COOKIE_DOMAIN = '.snipt.net'
if not DEBUG:
HAYSTACK_CONNECTIONS = {
'default': {
'ENGINE': 'haystack.backends.elasticsearch_backend.ElasticsearchSearchEngine',
@ -73,5 +62,4 @@ if not DEBUG:
},
}
# Extensions
INSTALLED_APPS += ('django_extensions',)