[Answer]-Connecting problems to a DB using psycopg2

1👍

You should specify host and port in your settings.py file. If you are running postgresql locally it will be:

'HOST': 'localhost',
'PORT': '5432',

Edit

Also note that mydb.db is not a valid database name for postgres.

👤Yossi

Leave a comment