Commit 380ff0cd authored by okhin's avatar okhin

#19 if we didn't defined anenvironment variable, just leave ALLOWED_HOSTS as it is

parent deb24f73
Pipeline #1052 passed with stages
in 2 minutes and 25 seconds
......@@ -10,5 +10,5 @@ from .env import DEBUG
if DEBUG:
ALLOWED_HOSTS = ['*']
else:
elif 'DJANGO_ALLOWED_HOSTS' in os.environ:
ALLOWED_HOSTS = [os.environ['DJANGO_ALLOWED_HOSTS']]
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment