Working on Heroku integration.

master
Nick Sergeant 2014-10-20 14:16:12 -04:00
parent 5faf1b1fb7
commit 7cedbef7cb
1 changed files with 11 additions and 1 deletions

View File

@ -4,6 +4,12 @@ if 'DATABASE_URL' in os.environ:
DATABASES = {
'default': dj_database_url.config()
}
HAYSTACK_CONNECTIONS = {
'default': {
'ENGINE': 'haystack.backends.elasticsearch_backend.ElasticsearchSearchEngine',
'URL': os.environ.get('BONSAI_URL', ''),
},
}
else:
DATABASES = {
'default': {
@ -15,6 +21,11 @@ else:
'PORT': ''
}
}
HAYSTACK_CONNECTIONS = {
'default': {
'ENGINE': 'haystack.backends.simple_backend.SimpleEngine',
},
}
ABSOLUTE_URL_OVERRIDES = { 'auth.user': lambda u: "/%s/" % u.username, }
ACCOUNT_ACTIVATION_DAYS = 0
@ -28,7 +39,6 @@ CSRF_COOKIE_SECURE = False
DEBUG = os.environ.get('DEBUG', False)
DEFAULT_FROM_EMAIL = 'nick@snipt.net'
EMAIL_BACKEND = 'postmark.django_backend.EmailBackend'
HAYSTACK_CONNECTIONS = { 'default': { 'ENGINE': 'haystack.backends.simple_backend.SimpleEngine', }, }
HAYSTACK_SIGNAL_PROCESSOR = 'haystack.signals.RealtimeSignalProcessor'
INTERCOM_SECRET_KEY = os.environ.get('INTERCOM_SECRET_KEY', '')
INTERNAL_IPS = ('127.0.0.1',)