I am building a django app with a MySQL DB. When I run \'python manage.py migrate\' for the first time, some tables are created well then some errors appear. The error broug
If the above does not work and you do not need Innodb, defaulting to MYISAM works as it does not have the same level of referential integrity:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'name',
'USER': 'user',
'PASSWORD': 'password',
'OPTIONS': {
"init_command": "SET storage_engine=MYISAM",
}
}
}