Sorry for my English. The code is more obvious.
In Django I need a line django.setup() before importing django model for some scripts beyond the django project:
import django
django.setup()
from apps.model import Blah
zimports will change it to
import django
from apps.model import Blah
django.setup()
What is the right way in this situation?
Sorry for my English. The code is more obvious.
In Django I need a line
django.setup()before importing django model for some scripts beyond the django project:zimports will change it to
What is the right way in this situation?