5
I’m doing a project with Django and Python 3 but I can’t find the appropriate Mysql connector. The django.db.backends.mysql
works, but only for Python 2, and I wanted to avoid using this version. On the terminal when I type import django.db.backends.mysql
it matters without any error, but when I will run on the server by the command python3 manage.py runserver
error appears:
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-Packages/Django/db/backends/mysql/base.py", line 18, in raise Improperlyconfigured("Error loading Mysqldb module: %s" % e) Django.core.exceptions.Improperlyconfigured: Error loading Mysqldb module: No module named 'Mysqldb'
Is there any way to solve this? Django projects have some restriction on development using Python 3?
Currently the development environment is on an OS X Yosemite.
Thank you!
Thank you very much Gypsy. It worked correctly after your reply.
– juniorgarcia