Connect database to Django backend
This commit is contained in:
parent
a66b8820df
commit
9fc83f5974
2 changed files with 8 additions and 3 deletions
|
@ -1 +1,2 @@
|
||||||
Django==3.2.8
|
Django==3.2.8
|
||||||
|
psycopg2-binary>=2.8
|
||||||
|
|
|
@ -75,8 +75,12 @@ WSGI_APPLICATION = 'right_tree.wsgi.application'
|
||||||
|
|
||||||
DATABASES = {
|
DATABASES = {
|
||||||
'default': {
|
'default': {
|
||||||
'ENGINE': 'django.db.backends.sqlite3',
|
'ENGINE': 'django.db.backends.postgresql',
|
||||||
'NAME': BASE_DIR / 'db.sqlite3',
|
'NAME': 'right_tree',
|
||||||
|
'USER': 'postgres',
|
||||||
|
'PASSWORD': 'postgres',
|
||||||
|
'HOST': 'postgres',
|
||||||
|
'PORT': 5432,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue