About 20 models in 1 django app

前端 未结 6 744
太阳男子
太阳男子 2021-01-30 07:05

I have started work on a local app for myself that runs through the browser. Having recently gone through the django tutorial I\'m thinking that it might be better to use django

6条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-30 07:49

    "I have at least 20 models" -- this is probably more than one Django "app" and is more like a Django "project" with several small "apps"

    I like to partition things around topics or subject areas that have a few (1 to 5) models. This becomes a Django "app" -- and is the useful unit of reusability.

    The overall "project" is a collection of apps that presents the integrated thing built up of separate pieces.

    This also helps for project management since each "app" can become a sprint with a release at th end.

提交回复
热议问题