Cloned a previous Python Flask app and deployed on Heroku but its displaying 'Internal Server Error' and when checked logs it says
sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) could not connect to server: Connection refused
Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432?