[Answered ]-Operationalerror: database don't exist

1👍

First migration doesn’t create the database, it needs existing database to create tables in it.

To create postgres database run from your terminal:

createdb -U postgres possedimenti_database

You might have to replace postgres in above command with your database user.

1👍

check the details in your settings.py for your DB. Recreate the PostgreSQL database using those exact same details (port number, user, host, password etc). Try this existing solution here link here:

PostgreSQL – create a new DB through pgAdmin UI in order to create the DB via pgAdmin

Leave a comment