Forums

Pythonanywhere postgreSQL connecting to local pgAdmin and django

I have had success connecting my local pgAdmin with the pythonanywhere postgres with the SSH tunnel of pgAdmin but I would like to use this database in my local django system as well

I am on Windows and I have been using Putty, I can successfully connect to the ssh.pythonanywhere port 22 but when trying to connect to the remote database I receive a "Forwarded connection refused by server: Connect failed [Connection refused]" in both my local pgAdmin and django's settings.py in the Putty event log.

Does that mean that I cannot enter the remote db? or I need to modify some .conf files in pythonanywhere?

For those interested, the solution is here: https://arduino103.blogspot.com/2015/07/introduction-hebergement-python.html