
# This file contains settings for the Heroku production server

from .base import *
import os

# Parse database configuration from $DATABASE_URL in heroku environment
import dj_database_url
DATABASES = {'default': dj_database_url.config()}

# Honor the 'X-Forwarded-Proto' header for request.is_secure()
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')

# Allow all host headers
ALLOWED_HOSTS = ['*']

DEBUG = True

@@ -81,18 +81,8 @@
 rt *
-%0Aimport os
 %0A%0A# 
@@ -412,8 +412,113 @@
  = True%0A
+%0A# Allow https protocol to be used with callback urls in allauth%0AACCOUNT_DEFAULT_HTTP_PROTOCOL = %22https%22%0A

set ACCOUNT_DEFAULT_HTTP_PROTOCOL to https