I have a Python Django project.
The following is installed:
- virtualenv
- Django 1.8.3
- mysqlclient 1.3.6 (https://github.com/PyMySQL/mysqlclient-python)
Django settings has the following database configuration:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'the_name',
'USER': 'the_user',
'PASSWORD': 'the_password',
'HOST': 'the_host',
'PORT': '3306',
}
}
When I run:
python manage.py makemigrations
I get the following error:
raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e)
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module:
As far as I understand it is a problem with the mysqlclient fork (which is essentially the MySQLdb module).
Questions:
- What could be the problems with the above?
- Are there any suggestions on how to make Python 3.4, Django 1.8 and MySQL work together? (i.e. there is poor support for MySQL in Django 1.8 in my opinion)
Thank you.