app.py 文件源码

python
阅读 18 收藏 0 点赞 0 评论 0

项目:social-examples 作者: python-social-auth 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号