production.py.example 620 Bytes
Newer Older
Florent Chehab's avatar
Florent Chehab committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
from .base import * 

# Debug shouldn't be activated in production
DEBUG = False

# Is moderation activated (model moderation level is set to 1)
MODERATION_ACTIVATED = False

# Database config
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'NAME': 'DB_DATABASE_NAME',
        'USER': 'DB_USER',
        'PASSWORD': 'DB_USER_PASSWORD',
        'HOST': 'localhost',
        'PORT': '',
    }
}

SECRET_KEY = 'a_random_string'

ALLOWED_HOSTS = ['your_production_domain_or_ip', 'your_local_domain']

STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static/')