To use PostgreSQL with Django, we have to install “psycopg”. It is the most popular PostgreSQL adapter for the Python programming language. The ne

Connect a Django project to a PostgreSQL database in minutes

submited by
Style Pass
2024-05-07 08:30:06

To use PostgreSQL with Django, we have to install “psycopg”. It is the most popular PostgreSQL adapter for the Python programming language.

The next step is to create our database and user. I will use pgAdmin (PostgreSQL desktop app) to create the database and then my user.

Don’t forget to change the fields “user_name” and “password” for your own name and password. Then, execute the script.

Leave a Comment