Saturday, June 29, 2019

Database Configuration Error

Hi Folks,
I'm uisng Digital Ocean provided VPS and I'm using PostgreSQL and I'm gettings this error,
File "/home/sai/saiproject/env/lib/python3.5/site-packages/psycopg2/", line 126, in connect
    conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
django.db.utils.OperationalError: could not connect to server: Connection refused
Is the server running on host "localhost" ( and accepting
TCP/IP connections on port 5432?

Please help me,guys.
Thank you


You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
To view this discussion on the web visit
For more options, visit

No comments:

Post a Comment