Skip to content

Commit

Permalink
Add DEFAULT_URL_SCHEME setting and set to http
Browse files Browse the repository at this point in the history
This setting needs to be changed if the site needs to be served over
https. Putting this here with the default value so that it's easier to
find this setting again when we need it.

http://django-subdomains.readthedocs.io/en/latest/ref/utils.html#module-subdomains.utils
  • Loading branch information
chrismytton authored and mhl committed Sep 20, 2016
1 parent a969167 commit 7b1b984
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions writeit/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@
# If you set this to False, Django will not use timezone-aware datetimes.
USE_TZ = True

# If the site is being served over https change this to 'https' so that links
# to subdomains use the correct scheme.
DEFAULT_URL_SCHEME = 'http'

# Absolute filesystem path to the directory that will hold user-uploaded files.
# Example: "/var/www/example.com/media/"
MEDIA_ROOT = ''
Expand Down

0 comments on commit 7b1b984

Please sign in to comment.