def render_home(self):
context = common_context(
cherrypy.config[setting_name('AUTHENTICATION_BACKENDS')],
load_strategy(),
user=getattr(cherrypy.request, 'user', None),
plus_id=cherrypy.config.get(setting_name('SOCIAL_AUTH_GOOGLE_PLUS_KEY'))
)
return cherrypy.tools.jinja2env \
.get_template("home.html") \
.render(**context)
评论列表
文章目录