Skip to content

Commit f257bfb

Browse files
author
Mario Colombo
committed
make allowed hosts work
1 parent dd9c5ac commit f257bfb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
# SECURITY WARNING: don't run with debug turned on in production!
1414
DEBUG = os.environ.get('DEBUG') == "True"
1515

16-
ALLOWED_HOSTS = os.environ.get('DOMAIN')
16+
ALLOWED_HOSTS = [os.environ.get('DOMAIN'),]
1717
if DEBUG:
18-
ALLOWED_HOSTS = "*"
18+
ALLOWED_HOSTS = ["*",]
1919

2020
# Redirect to HTTPS by default, unless explicitly disabled
2121
SECURE_SSL_REDIRECT = os.environ.get('SECURE_SSL_REDIRECT') != "False"

0 commit comments

Comments
 (0)