[Django]-Python-ModuleNotFoundError: No module named 'django.db.migrations.migration'

6👍

By running those commands you might have accidentally deleted the migrations module. Try reinstalling Django via pip.
pip uninstall django
pip install django

Take note of the version of Django you are using. In case you aren’t using the latest version for your python environment install using the following command
pip install django==<version goes here>

Edit:-

Drop the existing database schema. Delete the migrations folder and recreate an empty one in its place.

0👍

It seems you need to force reinstall Django in order to restore the base migrations folder.

0👍

Just install

pip3 install django-reset-migrations     

Leave a comment