Browse files

Allow adding extra allowed_hosts for local testing et al.

  • Loading branch information...
1 parent e9af771 commit 65b80e1f0048c23a7ba2bc2db17c66ca5ffc9e70 @coderanger coderanger committed Oct 18, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 django_www/settings.py
View
2 django_www/settings.py
@@ -5,7 +5,7 @@
### Django settings
-ALLOWED_HOSTS = ['www.djangoproject.com', 'djangoproject.com']
+ALLOWED_HOSTS = ['www.djangoproject.com', 'djangoproject.com'] + SECRETS.get('allowed_hosts', [])
CACHE_MIDDLEWARE_KEY_PREFIX = 'djangoproject'

0 comments on commit 65b80e1

Please sign in to comment.