Skip to content

Commit

Permalink
Merge pull request mozilla#637 from pmclanahan/upgrade-django
Browse files Browse the repository at this point in the history
Bug 841773: Add ALLOWED_HOSTS setting.
  • Loading branch information
pmac committed Feb 20, 2013
2 parents deb2ed9 + ada599a commit 25d4f79
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 4 additions & 0 deletions settings/__init__.py
Expand Up @@ -8,3 +8,7 @@
except ImportError, exc:
exc.args = tuple(['%s (did you rename settings/local.py-dist?)' % exc.args[0]])
raise exc


if DEV:
ALLOWED_HOSTS = ['*']
9 changes: 7 additions & 2 deletions settings/base.py
Expand Up @@ -53,12 +53,17 @@
'gameon',
]

ALLOWED_HOSTS = [
'www.mozilla.org',
'www.allizom.org',
]

# Make this unique, and don't share it with anybody.
SECRET_KEY = '1iz#v0m55@h26^m6hxk3a7at*h$qj_2a$juu1#nv50548j(x1v'
SECRET_KEY = 'ssssshhhhh'

TEMPLATE_DIRS = (
path('templates'),
path('locale')
path('locale'),
)


Expand Down

0 comments on commit 25d4f79

Please sign in to comment.