|
|
|
|
|
by akx
3463 days ago
|
|
You can make `models` a package, where `models/__init__.py` just imports models from the package's modules (`models/thingamabobs.py` and ` from .thingamabobs import Thingamabob`). Also, you shouldn't need to worry about database connection logic in Django unless you're doing something very specific. |
|
For common functionality (ie an abstract model or a mixin that is used/inherited by multiple models/views) I like to add another django app named common or core that is used by the other apps.