Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Solution.
1. Delete all migrations except __init__.py from the migrations folder of your application and also delete all migrations related to your application in the database in the django_migrations table and delete the table itself for which migrations do not pass.
2. In the database settings in the settings.py file, do so and run the migrations again.
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': '',
'USER': '',
'PASSWORD': '',
'OPTIONS': {
"init_command": "SET storage_engine=MYISAM",
}
}
},
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question