Forums

Can not deploy Django app to http://tkov.pythonanywhere.com

I am getting the hello world message. I really want to get my app deployed and I am about ready to throw in the towel given the amount of time and hours spent trying to get this to work.

Hi there, django deploys can be tricky, we've all been there!

Have you come across this guide? http://help.pythonanywhere.com/pages/DebuggingImportError -- it has steps for hunting down the reasons for most problems...

i have tried to follow http://cookiecutter-django.readthedocs.io/en/latest/deployment-on-pythonanywhere.html

I am now getting this error super(Connection, self).__init__(*args, **kwargs2) django.db.utils.OperationalError: (2002, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysql d.sock' (2)")

Are you giving your webapp the correct mysql hostname? It's not on localhost. Check your databases page for the host.