Changeset - 0a88ccce1810
[Not reviewed]
0 2 0
Christopher Neugebauer - 7 years ago 2017-08-16 03:07:45
chrisjrn@gmail.com
Adds environment variables to always serve over HTTPS
2 files changed with 8 insertions and 0 deletions:
0 comments (0 inline, 0 general)
pinaxcon/settings.py
Show inline comments
...
 
@@ -33,2 +33,7 @@ TIME_ZONE = os.environ.get("TZ", "America/Los_Angeles")
 

	
 

	
 
# Use SSLRedirectMiddleware
 
SSL_ON = os.environ.get("DJANGO_SSL_ON", True)
 
SSL_ALWAYS = os.environ.get("DJANGO_SSL_ALWAYS", False)
 

	
 
# Language code for this installation. All choices can be found here:
...
 
@@ -120,2 +125,4 @@ MIDDLEWARE_CLASSES = [
 
    "django.middleware.clickjacking.XFrameOptionsMiddleware",
 
    "ssl_redirect.middleware.SSLRedirectMiddleware",
 

	
 
]
requirements/base.txt
Show inline comments
...
 
@@ -9,2 +9,3 @@ pinax-pages==0.4.2
 
pinax-boxes==2.1.2
 
django-ssl-redirect==2.0
 
django-libsass==0.7
0 comments (0 inline, 0 general)