I would like to know what is the best import strategy within django reusable applications.
Say I have an application called usefulapp. Inside my app, I will need to access, say, the models. Should I use an explicit import as:
import usefulapp.models
or simply, since I am inside this very app, I could use:
import models
Which one is recommended?
Are there disadvantages of using the second approach?
The second approach assumes that
.is insys.pathbefore any other directories that may contain amodelsmodule. There is no requirement that.be in it at all, so importing either via relative imports or via the app is best.