Skip to content Skip to sidebar Skip to footer

Django Django.db.migrations.graph.circulardependencyerror

I am facing circulation error while migrating my app. when i run this: (virEnv)abc@abc-All-Series:~/vissa_poc$ python manage.py migrate forms **I get this:** Traceback (most recen

Solution 1:

I may suggest that you are trying to use ManyToMany field with 'through' option.

To fix it you need to do the next:

  1. Comment a whole line where you use ManyToMany+through by putting # at the beginning of the line
  2. makemigrations of_all_apps_you_need (also the one where the line from p1 exist)
  3. uncomment the line from p1
  4. makemigrations the_app_where_the_line_from_p1_exist
  5. migrate

Post a Comment for "Django Django.db.migrations.graph.circulardependencyerror"