Skip to content

Commit

Permalink
Only prepend www for production website (fixes #860)
Browse files Browse the repository at this point in the history
  • Loading branch information
JackMorganNZ committed Feb 5, 2018
1 parent 53ed439 commit 2a714a1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion csunplugged/config/settings/production.py
Expand Up @@ -23,7 +23,10 @@

# URL Configuration
# ------------------------------------------------------------------------------
PREPEND_WWW = True
if env("DEPLOYMENT", default="none") == "prod":
PREPEND_WWW = True
else:
PREPEND_WWW = False

# DATABASE CONFIGURATION
# ----------------------------------------------------------------------------
Expand Down

0 comments on commit 2a714a1

Please sign in to comment.