[Answer]-Error importing a model in different django app

1👍

The reason is that you’ve got imports loop in your models structure. Using the model’s name "school.School" for ForeignKey should fix this. Or you could rethink your models’ design.

Leave a comment