from defprogramming.settings import *

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

from defprogramming.settings import *

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

Disable prepend for now