Django App Dependency Cycle

前端 未结 4 1429
耶瑟儿~
耶瑟儿~ 2020-12-08 01:28

I am in the middle of developing a Django application, which has quite complicated models (it models a university - courses, modules, lectures, students etc.)

I have

4条回答
  •  时光说笑
    2020-12-08 01:59

    Normally I advocate for splitting functionality into smaller apps, but a circular dependence between models reflects such a tight integration that you're probably not gaining much from the split and might just consider merging the apps. If that results in an app that feels too large, there may be a way to make the split along a different axis, resulting in a more sane dependency graph.

提交回复
热议问题