How to use Postgres Database in Django

Published: 14 August 2021
on channel: BERTDELASPEED
550
11

In this tutorial, I show you how to download and replace the sqlite database with a database you create yourself on pgAdmin along with that, I show you how to make the migrations and make the tables appear in the pgAdmin
Replace Db in settings.py
---------------------------------
DATABASES={
'default':{
'ENGINE':'django.db.backends.postgresql_psycopg2',
'NAME':config('DB_NAME'),
'USER':config('DB_USER'),
'PASSWORD': config('DB_PASSWORD'),
'HOST':'localhost',
'PORT':'5432',
}
}
------------------------------------
#postgres #django #postgresql #pgadmin


On this page of the site you can watch the video online How to use Postgres Database in Django with a duration of hours minute second in good quality, which was uploaded by the user BERTDELASPEED 14 August 2021, share the link with friends and acquaintances, this video has already been watched 550 times on youtube and it was liked by 11 viewers. Enjoy your viewing!