Forums

Mysql with python 3.4

I am trying to setup mysql with python 3.4 and django1.7

Created a virtualenv with --system-site-packages (Ref : https://www.pythonanywhere.com/forums/topic/109/)

Upgraded django and configured wsgi Installed Mysql connector for python 3 (ref : https://www.pythonanywhere.com/wiki/UsingMySQL)

And i still end up getting this error:

File "/usr/local/lib/python3.4/dist-packages/django/db/backends/mysql/base.py", line 17, in <module> raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e)

:django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named 'MySQLdb'

Any leads ?

You need to change your settings to use the MySQl connector and not MySQLdb, as described in your second reference.