[Django]-Django Postgresql syncdb error

1👍

I’ve had this error multiple times. If you’re trying to connect to a local database, your best bet is to leave the host as an empty string:

'HOST': ''

If that doesn’t work, the following should:

'HOST': '127.0.0.1'

Leave a comment