In my Django app (lets call it app) I have a number of files: views.py, models.py and I created my own utils.py.
Unfortunately, while I can include my models in my views.py file simply by saying
from models import *
In my utils.py file, if I try the same thing, and then work with a model, I get an exception Global name: MyModel is not defined. models.py does indeed include utils.py, and I understand this may be a circular dependcy, but it worked fine until I added a recent change. Is this the cause, if so is the only solution to refactor my utils file?