Maybe you referenced another model in your model and the referenced model is no more there or its name changed
On Thu, 10 Aug 2023, 2:10 pm Kani Sbt, <[email protected]> wrote: > django.db.migrations.exceptions.InconsistentMigrationHistory: Migration > admin.0001_initial is applied before its dependency lottyapp.0001_initial > on database 'default'. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/a80ac299-116f-473d-905f-cbc7943513cen%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/a80ac299-116f-473d-905f-cbc7943513cen%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHV4E-cVm62sm_fjKMeLi0J-U9qaTyM6OSNA94%3D6TyqrppvWtw%40mail.gmail.com.

