What I am using:
- Operating system: Debian 9
- Database: MySQL 5.5
- Django 1.11.4
I execute the command:
python manage.py migrate
The following error message is displayed in the terminal:
django.core.exceptions.ImproperlyConfigured: 'mysql_cymysql' isn't an
available database backend.
Try using 'django.db.backends.XXX', where XXX is one of:
'mysql', 'oracle', 'postgresql', 'sqlite3'
Error was: No module named cymysql
When installing cymysql
with the command:
pip install cymysql
If I run in% mode,% co shows:
Requirement already satisfied: cymysql in /usr/local/lib/python2.7/dist-packages.
In root
I have installed
django-cymysql==2.0.0
pip freeze
is not installed.
The cymysql
file is configured as follows:
DATABASES = {
'default': {
'ENGINE': 'mysql_cymysql',
'NAME': 'nombre_base_de_datos',
'USER': 'root',
'PASSWORD': '*******',
'HOST': 'localhost',
'PORT': '3306',
}
}
The content of settings.py
is:
from __future__ import unicode_literals
from django.db import models
class Formulario(models.Model):
# parametros
# parametros
# parametros