Use only some parts of Django?

后端 未结 8 1869
北海茫月
北海茫月 2020-11-28 02:39

I like Django, but for a particular application I would like to use only parts of it, but I\'m not familiar enough with how Django works on the inside, so maybe someone can

8条回答
  •  青春惊慌失措
    2020-11-28 03:22

    There are of course other projects out there that specifically implement single parts of django. TurboGears for example is a collection of several projects that can work by themselves and together form a complete web development framework.

    For the db abstraction SQLAlchemy comes to mind.

    Regarding the caching part: I'm not aware of any standalone project that implements a generic caching facility.

    On the other hand, it should be fairly easy to implement your own caching, for example by using pickles. Have a look at this recipe for a decorator for ideas and google for "memoize".

    Also keep in mind that your database has its own caching mechanism, so maybe you don't even need to concern yourself with the details.

提交回复
热议问题