Reputation: 143
I am currently using Django 1.10.7 and Python 3.5. I think I seriously screwed everything up in my django project. I wanted to wipe my MySQL database, so I created another db but I was reading that I need to delete all migrations in my database(so I deleted the db and created another with a different name) and deleted the migration files in my app. I followed a guide with said to run in terminal:
find . -path "*/migrations/*.py" -not -name "__init__.py" -delete
find . -path "*/migrations/*.pyc" -delete
After this, when I try to run makemigrations, I get error:
"ImportError: no module named 'django.db.migrations.exceptions'.
I couldn't find anyone else with this problem and honestly I'm about to create an entirely new virtualenv and set up everything again from scratch.
Upvotes: 0
Views: 285
Reputation: 7717
You include virtual environment in your project and the command find . -path "*/migrations/*.py" -not -name "__init__.py" -delete
delete all file in django/db/migrations : .
The the simplest way is reinstall django or recreate virtual environment.
Upvotes: 1