When to create a new app (with startapp) in Django?

前端 未结 8 2007
余生分开走
余生分开走 2020-12-12 15:44

I\'ve googled around for this, but I still have trouble relating to what Django defines as \"apps\".

Should I create a new app for each piece of functionality in a

8条回答
  •  我在风中等你
    2020-12-12 16:30

    Here is the updated presentation on 6 September 2008.

    DjangoCon 2008: Reusable Apps @7:53

    Slide: Reusable_apps.pdf

    Taken from the slide

    Should this be its own application?

    • Is it completely unrelated to the app’s focus?
    • Is it orthogonal to whatever else I’m doing?
    • Will I need similar functionality on other sites?

    If any of them is "Yes"? Then best to break it into a separate application.

提交回复
热议问题