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
- [Answered ]-Django REST API custom methods for generic views
- [Answered ]-Django Q&Q versus filter.filter
- [Answered ]-Django: get top tags?
Source:stackexchange.com