-1

return Database.Cursor.execute(self, query, params) django.db.utils.OperationalError: no such table: theblog_categories

i expected to migrate succesfully

  • Hi, welcome to StackOverflow. Please provide more information about your problem, like related app models, existing app migratios etc. also please read [How to ask](https://stackoverflow.com/help/how-to-ask) – PTomasz Nov 22 '22 at 08:53

1 Answers1

1

This is because the migrations in Django are little complex and often with little changes it doesn't reflect the changes in the DB.

Please delete Migrations file from the Django app and then migrate it again. You can also refer this link if the problem persist: Django migrate --fake and --fake-initial explained

If the problem still persist please reply to this comment.