Skip to content

Commit

Permalink
ALLOWED_HOSTS: Use list (fixes 4.x error)
Browse files Browse the repository at this point in the history
django.core.exceptions.ImproperlyConfigured: The ALLOWED_HOSTS setting
must be a list or a tuple.
  • Loading branch information
tony committed Jan 5, 2022
1 parent 8ef01b9 commit 82b4250
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
"django.contrib.admin",
"channels",
]
ALLOWED_HOSTS = "*"
ALLOWED_HOSTS = ["*"]
STATIC_URL = "/static/"
STATICFILES_FINDERS = ["django.contrib.staticfiles.finders.AppDirectoriesFinder"]
# In this simple example we use in-process in-memory Channel layer.
Expand Down

0 comments on commit 82b4250

Please sign in to comment.