How To Connect / Integrate Postgresql Database With Django In Hindi

Опубликовано: 04 Октябрь 2024
на канале: Pythonworld
2,415
89

So, Hey Guys In this video we are going to learn how to connect postgresql database with django

You need to download
Postgresql - https://www.postgresql.org/download/
Pgadmin4 - https://www.pgadmin.org/download/
install the connnector - pip/pip3 install psycopg2

Add this Database settings in settings.py file

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'Database name',
'USER': 'here include user',
'PASSWORD': ' here include password',
'HOST': 'localhost',
'PORT': '5432',
}
}

Follow our instagram Page -   / _pythonworld_  
Join our telegram Channel - https://t.me/s/pythonw0rld
Like our Facebook Page -   / thepythonworld  

And don't forget to subscribe our youtube channel