I have a django web app which is working fine on azure. I can see that it has loaded postgresql from the requirements.txt. However, when i try to makemigrations through azure ssh for the database it will not work and will not load postgresql and i get the following error; File "/opt/python/3.7.9/lib/python3.7/site-packages/psycopg2/init.py", line 127, in connect
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" (127.0.0.1) and accepting
TCP/IP connections on port 5432?
could not connect to server: Cannot assign requested address
Is the server running on host "localhost" (::1) and accepting
TCP/IP connections on port 5432?