From 2a714a1e0ef62322e0d7a359921d99edd1a4e0bd Mon Sep 17 00:00:00 2001 From: Jack Morgan Date: Tue, 6 Feb 2018 12:08:02 +1300 Subject: [PATCH] Only prepend www for production website (fixes #860) --- csunplugged/config/settings/production.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/csunplugged/config/settings/production.py b/csunplugged/config/settings/production.py index 3ade6034b..e8e258cb5 100644 --- a/csunplugged/config/settings/production.py +++ b/csunplugged/config/settings/production.py @@ -23,7 +23,10 @@ # URL Configuration # ------------------------------------------------------------------------------ -PREPEND_WWW = True +if env("DEPLOYMENT", default="none") == "prod": + PREPEND_WWW = True +else: + PREPEND_WWW = False # DATABASE CONFIGURATION # ----------------------------------------------------------------------------