Answer the question
In order to leave comments, you need to log in
How to import a model from another Django application?
in the orders application of the mysite project in the models.py file, I import a model from another application, and using the alt + enter key combination in Pycharm, this is what was automatically substituted: from mysite.products.models import Product
But when I try to makemigrations, it gives an error
ModuleNotFoundError: No module named 'mysite.products'
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question