I can't run python manage.ph migrations from bach console. whatever I try it always raises this host issue:
File "/home/XYZ/.virtualenvs/msgl/lib/python3.7/site-packages/django/db/backends/mysql/base.py", line 227, in get_new_connection
return Database.connect(
conn_params)
File "/home/XYZ/.virtualenvs/msgl/lib/python3.7/site-packages/MySQLdb/
init
.py", line 85, in Connect
return Connection(*args,
kwargs)
File "/home/XYZ/.virtualenvs/msgl/lib/python3.7/site-packages/MySQLdb/connections.py", line 204, in
init
super(Connection, self).
init
(
args,
*kwargs2)
django.db.utils.OperationalError: (2003, "Can't connect to MySQL server on 'XYZ.mysql.pythonanywhere-services.com' (110)")
Thanks for your support in advance.
Sezen E.
I think so, This is what I have in my databases tab (I just replaced my user name with XYZ):
MySQL settings
Connecting:
Use these settings in your web applications.
Database host address:
XYZ.mysql.pythonanywhere-services.com
Should I use something else?
thanks
Sezen
thanks for the response Glenn.
Here is what I have in database settings, which looks good to me:
what is the error in this i can't understand here this code is used in wsgi.py fileand the error is syntax error in if class
Sorry, we have had to rate-limit your feedback sending. Please try again in a few moments...
Thanks for the feedback! Our tireless devs will get back to you soon.