django shared library/classes

后端 未结 4 1372
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-08 08:21

Am new to django and was looking for advice where to place my shared library. Am planning on creating classes that I want to use across all my apps within the project. Where wou

4条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-08 08:40

    What I learned from Two Scoops of Django is that you put the shared code inside a Django app that you create on your own called core.

    To use the core app then is similar to how you cross-use classes from other apps.

    To learn more, go to Chapter 28 of the book titled: "What About Those Random Utilities?"

提交回复
热议问题