Skip to content

Commit

Permalink
Add the now required ALLOWED_HOSTS setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Day committed Nov 12, 2013
1 parent 0f62758 commit fe26cf4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions project_template/conf/general.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@ DJANGO_SECRET_KEY: '{{ secret_key }}'
# create an account and then put the 'UA-123456-1' bit here. If present it will
# be used in the templates.
GOOGLE_ANALYTICS_ACCOUNT: ''

# Be sure to set this in your config for sites where DEBUG is False
ALLOWED_HOSTS:
- '.example.com'
5 changes: 5 additions & 0 deletions project_template/conf/general.yml-example
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,8 @@ DJANGO_SECRET_KEY: ''
# create an account and then put the 'UA-123456-1' bit here. If present it will
# be used in the templates.
GOOGLE_ANALYTICS_ACCOUNT: ''

# Be sure to set this in your config for sites where DEBUG is False
# See: https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts
ALLOWED_HOSTS:
- '.example.com'
1 change: 1 addition & 0 deletions project_template/project_name/settings/mysociety.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@
TIME_ZONE = config.get('TIME_ZONE')
SECRET_KEY = config.get('DJANGO_SECRET_KEY')
GOOGLE_ANALYTICS_ACCOUNT = config.get('GOOGLE_ANALYTICS_ACCOUNT')
ALLOWED_HOSTS = config.get('ALLOWED_HOSTS', [])

0 comments on commit fe26cf4

Please sign in to comment.