From 90c5e8c5afbe87da298720959e68f499dd306f34 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Tue, 20 Oct 2015 23:06:55 +0200 Subject: [PATCH] Fix settings --- duckbook/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/duckbook/settings.py b/duckbook/settings.py index 741ab53..a5d0825 100644 --- a/duckbook/settings.py +++ b/duckbook/settings.py @@ -24,7 +24,7 @@ TEMPLATE_DEBUG = True ALLOWED_HOSTS = ['*'] -SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_FOR') +SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_FOR', 'https') # Application definition @@ -59,7 +59,7 @@ WSGI_APPLICATION = 'duckbook.wsgi.application' # Database # https://docs.djangoproject.com/en/1.7/ref/settings/#databases -os.environ.setdefault('DATABASE_URL', 'sqlite://' + os.path.join(BASE_DIR, 'db.sqlite3') +os.environ.setdefault('DATABASE_URL', 'sqlite://' + os.path.join(BASE_DIR, 'db.sqlite3')) DATABASES = { 'default': dj_database_url.config() }