78 lines
1.5 KiB
Python
78 lines
1.5 KiB
Python
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 = (
|
|
('Name', 'name@domain.com'),
|
|
)
|
|
|
|
MANAGERS = ADMINS
|
|
|
|
DATABASES = {
|
|
'default': {
|
|
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
|
'NAME': 'snipt',
|
|
'USER': '',
|
|
'PASSWORD': '',
|
|
'HOST': 'localhost',
|
|
'PORT': '',
|
|
}
|
|
}
|
|
|
|
TIME_ZONE = 'America/New_York'
|
|
|
|
LANGUAGE_CODE = 'en-us'
|
|
|
|
MEDIA_ROOT = os.path.join(BASE_PATH, 'media/uploads')
|
|
|
|
MEDIA_URL = '/media/uploads/'
|
|
|
|
if DEBUG:
|
|
STATIC_URL = '/media/'
|
|
|
|
SECRET_KEY = ''
|
|
|
|
DEFAULT_FROM_EMAIL = 'support@snipt.net'
|
|
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
|
|
SESSION_COOKIE_DOMAIN = '.snipt.net'
|
|
|
|
if not DEBUG:
|
|
HAYSTACK_CONNECTIONS = {
|
|
'default': {
|
|
'ENGINE': 'haystack.backends.elasticsearch_backend.ElasticsearchSearchEngine',
|
|
'URL': 'http://127.0.0.1:9200/',
|
|
'INDEX_NAME': 'haystack',
|
|
},
|
|
}
|
|
|
|
# Extensions
|
|
INSTALLED_APPS += ('django_extensions',)
|