How to use Postgres Database in Django

Publié le: 14 août 2021
sur la chaîne: 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


Sur cette page du site, vous pouvez voir la vidéo en ligne How to use Postgres Database in Django durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur BERTDELASPEED 14 août 2021, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 550 fois et il a aimé 11 téléspectateurs. Bon visionnage!