Skip to content

Commit 65b80e1

Browse files
committed
Allow adding extra allowed_hosts for local testing et al.
1 parent e9af771 commit 65b80e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django_www/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
### Django settings
77

8-
ALLOWED_HOSTS = ['www.djangoproject.com', 'djangoproject.com']
8+
ALLOWED_HOSTS = ['www.djangoproject.com', 'djangoproject.com'] + SECRETS.get('allowed_hosts', [])
99

1010
CACHE_MIDDLEWARE_KEY_PREFIX = 'djangoproject'
1111

0 commit comments

Comments
 (0)