I have a django project and I would like to run some unit tests. When I try:
python manage.py test
it throws this error and I couldn't find much information about it in here.
my db settings in settings.py
:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'mydb',
'USER': 'root',
'PASSWORD': 'password',
'HOST': 'localhost',
'PORT': '3306',
}
}
It looks like something related with InnoDB
and MyISAM
but I have no idea what is wrong and how to fix it. Thanks!
django version: 1.5.4
mysql version: 5.5
Also, there is no unique=True
set in any of the django models.
solution is
ALTER DATABASE `databasename` CHARACTER SET utf8;
as already exposed here
https://stackoverflow.com/a/43365860/7708836
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With