Skip to content

Commit d55d25c

Browse files
committed
Add example site to ALLOWED_HOSTS
1 parent 68655ef commit d55d25c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

web_project/settings.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@
2929

3030
# When deploying to Azure App Service, add you <name>.azurewebsites.net
3131
# domain to ALLOWED_HOSTS; you get an error message if you forget.
32-
ALLOWED_HOSTS = []
33-
32+
ALLOWED_HOSTS = [
33+
'localhost',
34+
'vscode-django-sample.azurewebsites.net' # Sample name only!
35+
]
3436

3537
# Application definition
3638

0 commit comments

Comments
 (0)