Django vs other Python web frameworks?

后端 未结 13 2241
抹茶落季
抹茶落季 2020-12-02 05:35

I\'ve pretty much tried every Python web framework that exists, and it took me a long time to realize there wasn\'t a silver bullet framework, each had its own advantages an

13条回答
  •  醉话见心
    2020-12-02 06:33

    I would suggest for TurboGears 2. They have done a fantastic job of integrating best of Python world.

    WSGI: Assuming you are developing moderately complex projects/ business solutions in TG2 or some other framework say Grok. Even though these frameworks supports WSGI does that mean one who is using these frameworks have to learn WSGI? In most cases answer is No. I mean it's good have this knowledge no doubt.

    WSGI knowledge is probably is more useful in cases like

    • you want to use some middleware or some other component which is not provided as part of the standard stack for eg. Authkit with TG or Grok without ZODB.
    • you are doing some integration.

    CherryPy is good but think of handling your database commits/rollbacks at the end of transactions, exposing json, validations in such cases TG, Django like frameworks do it all for you.

提交回复
热议问题