From a7e79c295d5b771e03a7cdfd3e37c4cfa6562f1a Mon Sep 17 00:00:00 2001 From: Nathan Chapman Date: Thu, 22 Jul 2021 18:20:55 -0600 Subject: [PATCH] Add database and static settings --- onboard/settings.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/onboard/settings.py b/onboard/settings.py index f168f1c..6d2e0bb 100644 --- a/onboard/settings.py +++ b/onboard/settings.py @@ -81,8 +81,12 @@ WSGI_APPLICATION = 'onboard.wsgi.application' DATABASES = { 'default': { - 'ENGINE': 'django.db.backends.sqlite3', - 'NAME': BASE_DIR / 'db.sqlite3', + 'ENGINE': 'django.db.backends.postgresql_psycopg2', + 'NAME': 'onboard', + 'USER': 'nathanchapman', + 'PASSWORD': 'lktr&^e/aY+X-5gTdfGs^ii+L~-,,`x0gzI+JpLu-', + 'HOST': 'localhost', + 'PORT': '', } } @@ -124,7 +128,7 @@ USE_TZ = True # https://docs.djangoproject.com/en/3.2/howto/static-files/ STATIC_URL = '/static/' -STATIC_ROOT = BASE_DIR / 'static' +STATIC_ROOT = [BASE_DIR / 'static/'] STATICFILES_DIRS = [BASE_DIR / 'static']