Setting changes for production

This commit is contained in:
Matthias 2020-09-06 22:49:09 -04:00
parent 7b1fcc4730
commit 940fb88def
2 changed files with 7 additions and 3 deletions

4
.gitignore vendored
View File

@ -2,4 +2,6 @@ venv
.idea
db.sqlite3
stale_outputs_checked
__pycache__
__pycache__
static
log

View File

@ -23,9 +23,9 @@ BASE_DIR = Path(__file__).resolve().parent.parent
SECRET_KEY = 'qdm4_0b)3^)k$6r($!o^a7&0l#^6)@g2wr!x0r40ii@9otfnwo'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
DEBUG = False
ALLOWED_HOSTS = ["192.168.1.124"]
ALLOWED_HOSTS = ["192.168.1.124", "thoughts.learnerpages.com"]
# Application definition
@ -119,3 +119,5 @@ USE_TZ = True
# https://docs.djangoproject.com/en/3.1/howto/static-files/
STATIC_URL = '/static/'
STATIC_ROOT = BASE_DIR / "static/"