Forums

Local to PythonAnywhere Postgres

I have about 1.5gb in a local postgres db. I want copy this data to my pythonanywhere postgres instance. I created a new postgres database in pythonanywhere, changed settings.py to the new host (etc.), but when I run:

python manage.py migrate --run-syncdb

to set up the tables, I get the following error:

conn = _connect(dsn, connection_factory=connection_factory, **kwasync) django.db.utils.OperationalError: connection to server at "[myusername].postgres.pythonanywhere-services.com" (10.0.0.64), port 12422 failed: Connection timed out (0x0000274C/10060) Is the server running on that host and accepting TCP/IP connections?

Any guidance would be sincerely appreciated!

take a look at https://help.pythonanywhere.com/pages/AccessingPostgresFromOutsidePythonAnywhere/