Skip to content

Commit 7476e0d

Browse files
committed
Settings for Azure deploy, plus empty DB
1 parent 91712f7 commit 7476e0d

3 files changed

Lines changed: 8 additions & 5 deletions

File tree

.gitignore

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,10 @@ coverage.xml
5454
# Django stuff:
5555
*.log
5656
local_settings.py
57-
db.sqlite3
57+
58+
# db is included with this branch as deploying to App Service
59+
# on Linux preview requires an already-initialized DB.
60+
# db.sqlite3
5861

5962
# Flask stuff:
6063
instance/
@@ -107,4 +110,4 @@ venv.bak/
107110
static_collected
108111

109112
# Exclude machine-specific vs code settings
110-
.vscode/settings.json
113+
.vscode/settings.json

db.sqlite3

132 KB
Binary file not shown.

web_project/settings.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@
3232
# a specific host, you must also add 'localhost' and/or '127.0.0.1' for local
3333
# debugging (which are enabled by default when ALLOWED_HOSTS is empty.)
3434
ALLOWED_HOSTS = [
35-
#'localhost',
36-
#'127.0.0.1'
37-
#'vscode-django-tutorial.azurewebsites.net' # Sample name only!
35+
'localhost',
36+
'127.0.0.1'
37+
'vscode-django-tutorial.azurewebsites.net' # Sample name only!
3838
]
3939

4040
# Application definition

0 commit comments

Comments
 (0)