Connect database to Django backend

This commit is contained in:
Dana Lambert 2021-10-06 14:37:29 +13:00
parent a66b8820df
commit 9fc83f5974
2 changed files with 8 additions and 3 deletions

View file

@ -1 +1,2 @@
Django==3.2.8
Django==3.2.8
psycopg2-binary>=2.8

View file

@ -75,8 +75,12 @@ WSGI_APPLICATION = 'right_tree.wsgi.application'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': BASE_DIR / 'db.sqlite3',
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'right_tree',
'USER': 'postgres',
'PASSWORD': 'postgres',
'HOST': 'postgres',
'PORT': 5432,
}
}