Skip to content

Commit 82b4250

Browse files
committed
ALLOWED_HOSTS: Use list (fixes 4.x error)
django.core.exceptions.ImproperlyConfigured: The ALLOWED_HOSTS setting must be a list or a tuple.
1 parent 8ef01b9 commit 82b4250

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
"django.contrib.admin",
9292
"channels",
9393
]
94-
ALLOWED_HOSTS = "*"
94+
ALLOWED_HOSTS = ["*"]
9595
STATIC_URL = "/static/"
9696
STATICFILES_FINDERS = ["django.contrib.staticfiles.finders.AppDirectoriesFinder"]
9797
# In this simple example we use in-process in-memory Channel layer.

0 commit comments

Comments
 (0)