Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Allow adding extra allowed_hosts for local testing et al.

  • Loading branch information...
commit 65b80e1f0048c23a7ba2bc2db17c66ca5ffc9e70 1 parent e9af771
@coderanger coderanger authored
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'
Please sign in to comment.
Something went wrong with that request. Please try again.