I am trying to reorganize the Django project. I renamed a couple of applications and added a new one, and also shuffled some models. I want to clear my database and migrations and start a new job, but I'm not sure how to do this. Here is what I did:
rm -r myapp/migrations // I ran this for all my apps python manage.py flush python manage.py makemigrations myapp // I ran this for all my apps python manage.py migrate // This errors
I get an error message:
django.db.utils.OperationalError: table "myapp_mymodel" already exists
Can someone tell me what I can do wrong?
EDIT: What is the django command to delete all tables? does not work.
source share