I recently split the app into two separate ones because I had 15 models. I had a "circular import error." To solve this problem, I tried to write this:
from django.db import models
class App1Model(models.Model):
app2model = models.ForeignKey(app2.App2Model)
The error I get is: "NameError: name" app2 "not defined." But application 2 is correctly added to installed applications and to the path.
project
-app1
-app2
source
share