2018-01-13 04:46:59 +01:00
|
|
|
# Use environment variables to configure settings
|
|
|
|
|
|
|
|
import os
|
|
|
|
from get_together.settings import *
|
|
|
|
|
|
|
|
DEBUG=os.environ.get('DEBUG_MODE', False)=="True"
|
|
|
|
ALLOWED_HOSTS = os.environ.get('ALLOWED_HOSTS', '127.0.0.1').split(',')
|
|
|
|
|
|
|
|
SECRET_KEY=os.environ.get('SECRET_KEY', '')
|
|
|
|
|
|
|
|
# Database configs
|
|
|
|
import dj_database_url
|
|
|
|
DATABASES['default'].update(dj_database_url.config())
|
|
|
|
|
|
|
|
MEDIA_URL = os.environ.get('MEDIA_URL', '/media/')
|
|
|
|
STATIC_URL = os.environ.get('STATIC_URL', '/static/')
|
|
|
|
|
2018-04-28 04:12:37 +02:00
|
|
|
EVENTS_TEAMS_DEFAULT_PREMIUM = os.environ.get('EVENTS_TEAMS_DEFAULT_PREMIUM', False)
|