PostgreSQL

Postgresql server did not shutdown correctly

I setup Postgresql as database for Django and it works as a charm. However, today I got a error message when I tried to migrate my django. 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" (::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?