Skip to content

Commit ca141a4

Browse files
committed
Remove names from ALLOWED_HOSTS (moving to a branch)
1 parent 5f4e4d8 commit ca141a4

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

web_project/settings.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,13 @@
2828
DEBUG = True
2929

3030
# When deploying to Azure App Service, add you <name>.azurewebsites.net
31-
# domain to ALLOWED_HOSTS; you get an error message if you forget.
31+
# domain to ALLOWED_HOSTS; you get an error message if you forget. When you add
32+
# a specific host, you must also add 'localhost' and/or '127.0.0.1' for local
33+
# debugging (which are enabled by default when ALLOWED_HOSTS is empty.)
3234
ALLOWED_HOSTS = [
33-
'localhost',
34-
'vscode-django-tutorial.azurewebsites.net' # Sample name only!
35+
#'localhost',
36+
#'127.0.0.1'
37+
#'vscode-django-tutorial.azurewebsites.net' # Sample name only!
3538
]
3639

3740
# Application definition

0 commit comments

Comments
 (0)