Skip to content

Commit

Permalink
Fix ALLOWED_HOSTS
Browse files Browse the repository at this point in the history
  • Loading branch information
davepeck committed Apr 3, 2024
1 parent 2bd3498 commit 1308d75
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions server/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,9 @@
SECURE_SSL_REDIRECT = not DEBUG


if DEBUG:
ALLOWED_HOSTS: list[str] = []
else:
ALLOWED_HOSTS: list[str] = [BASE_URL.split("://")[1].split(":", 1)[0]]
ALLOWED_HOSTS: list[str] = []
if not DEBUG:
ALLOWED_HOSTS = [BASE_URL.split("://")[1].split(":", 1)[0]]


# Application definition
Expand Down

0 comments on commit 1308d75

Please sign in to comment.