[Django]-ImportError: cannot import name <model_class>

21👍

As I mentioned in the comments, you have a circular dependency between your forms and models files. You’ll either need to refactor to remove the circularity, or if you really can’t do that you’ll have to move one of the imports into the function where it’s used.

Leave a comment