from defprogramming.settings import *

ALLOWED_HOSTS = ['*']

DEBUG = False
TEMPLATE_DEBUG = DEBUG

# Update database configuration with $DATABASE_URL.
import dj_database_url
db_from_env = dj_database_url.config(conn_max_age=500)
DATABASES['default'].update(db_from_env)

# SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')

# MIDDLEWARE_CLASSES += ('sslify.middleware.SSLifyMiddleware',)

PREPEND_WWW = True

import os
from defprogramming.settings import *

ALLOWED_HOSTS = ['*']

DEBUG = False
TEMPLATE_DEBUG = DEBUG

# Update database configuration with $DATABASE_URL.
import dj_database_url
db_from_env = dj_database_url.config(conn_max_age=500)
DATABASES['default'].update(db_from_env)

# SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')

# MIDDLEWARE_CLASSES += ('sslify.middleware.SSLifyMiddleware',)

PREPEND_WWW = True

SECRET_KEY = os.environ['SECRET_KEY']

Add secret key env var
Add secret key env var
