Skip to content
Tudor Amariei edited this page Oct 25, 2019 · 5 revisions

Why isn't my project running?

1. The database doesn't exist

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.

2. The database password is wrong

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 DATABASESs' USER and PASSWORD from settings.py.

Clone this wiki locally