Skip to content

Commit

Permalink
update django settings.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tsubakimoto committed May 6, 2024
1 parent c583c54 commit 1200ef6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/django/django_hello/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

ALLOWED_HOSTS = [os.environ['WEBSITE_HOSTNAME']] if 'WEBSITE_HOSTNAME' in os.environ else []
# https://github.com/MicrosoftDocs/azure-docs/issues/96982
# ALLOWED_HOSTS = [os.environ['WEBSITE_HOSTNAME']] if 'WEBSITE_HOSTNAME' in os.environ else []
ALLOWED_HOSTS = [os.environ['CUSTOM_HOSTNAME']] if 'CUSTOM_HOSTNAME' in os.environ else []


# Application definition
Expand Down

0 comments on commit 1200ef6

Please sign in to comment.