-
-
Notifications
You must be signed in to change notification settings - Fork 65
Tudor Amariei edited this page Oct 25, 2019
·
5 revisions
django.db.utils.OperationalError: could not connect to server: Connection refused
Is the server running on host "localhost" (::1) and accepting
TCP/IP connections on port 5432?
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?
That's probably because your docker container died along the way or you forgot to turn it back on (I do that all the time).
To fix this, you can docker container start postgres-risc
; if you get an error, make sure the docker container was created (docker ps -a
) and run the steps from the beginning of the Initial set-up.
django.db.utils.OperationalError: FATAL: password authentication failed for user "seism"
Make sure you're using the right command from the README and that it matches the DATABASES
s' USER
and PASSWORD
from settings.py
.