Tuesday, August 29, 2017

Re: A lot of Problems with Migrating (conceptual)


  File "C:\Users\Alexander\Envs\business_management\lib\site-packages\django\core\management\commands\migrate.py", line 86, in handle
  File "C:\Users\Alexander\Envs\business_management\lib\site-packages\django\db\migrations\loader.py", line 298, in check_consistent_history
django.db.migrations.exceptions.InconsistentMigrationHistory: Migration admin.0001_initial is applied before its dependency accounts.0001_initial on database 'default'.

let me know if you need anymore info to help me out with this. Thanks in advance

How are you generating your migration files? 

Are you specifying the app_label after the makemigrations command? 

Are you modifying the migration files after they've been generated?

Do you have an app with a label of admin? Or is that a reference to the built-in admin?


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 django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2Be%2BciUKFGrv62awj%2BuuSSuVaS9uYqVs2%2Brv%3DJPsaxvmJGNTfg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment