Answers for "django.db.utils.operationalerror: connection to server at "localhost" (127.0.0.1), port 5432 failed: connection refused is the server running on that host and accepting tcp/ip connections?"

CSS
0

Unable to connect to server: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused Is the server running on that host and accepting TCP/IP connections?

docker inspect \
	-f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' \
	<container_name_or_id>
    
# Outputs is the IP address you need to connect to
Posted by: Guest on March-06-2022

Code answers related to "django.db.utils.operationalerror: connection to server at "localhost" (127.0.0.1), port 5432 failed: connection refused is the server running on that host and accepting tcp/ip connections?"

Browse Popular Code Answers by Language