From 1200ef60d74c5ec5b7daf21232baaa89112b6ba2 Mon Sep 17 00:00:00 2001 From: Yuta Matsumura Date: Tue, 7 May 2024 00:12:28 +0900 Subject: [PATCH] update django settings.py --- python/django/django_hello/settings.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python/django/django_hello/settings.py b/python/django/django_hello/settings.py index cb7dbd4..fb876bb 100644 --- a/python/django/django_hello/settings.py +++ b/python/django/django_hello/settings.py @@ -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