Which is the preferred method to use jinja2 on App Engine?

前端 未结 4 2046
感动是毒
感动是毒 2021-02-20 15:24

I originally implemented Jinja2 on App Engine using the examples shown on the App Engine site here: https://developers.google.com/appengine/docs/python/gettingstartedpython27/te

4条回答
  •  情书的邮戳
    2021-02-20 16:29

    The first method is a very basic example.

    The second (with the BaseHandler) is the preferred method. Here you put the webapp2 shared methods. These methods can be used by derived classes and here you put webapp2 methods you want to override like dispatch.

提交回复
热议问题