Skip to content

Commit

Permalink
allow additional hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
nicokant committed May 15, 2024
1 parent b6fcfff commit 1c4621a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/settings/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
default="iUb7AqZQ5PzH8EeOdXOQgwwvfhbtyQWuziGY8XfG6hAM1KVwH0Ukt8q4nAuKHF5m",
)
# https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts
ALLOWED_HOSTS = ["localhost", "0.0.0.0", "127.0.0.1", "django", "django-dev"]
ALLOWED_HOSTS = ["localhost", "0.0.0.0", "127.0.0.1", "django", "django-dev"] + env.list(
"DJANGO_ALLOWED_HOSTS", default=[""]
)

# CACHES
# ------------------------------------------------------------------------------
Expand Down

0 comments on commit 1c4621a

Please sign in to comment.