views.py 文件源码

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

项目:djangosaml2 作者: knaperek 项目源码 文件源码
def finish_logout(request, response, next_page=None):
    if response and response.status_ok():
        if next_page is None and hasattr(settings, 'LOGOUT_REDIRECT_URL'):
            next_page = settings.LOGOUT_REDIRECT_URL
        logger.debug('Performing django logout with a next_page of %s',
                     next_page)
        return django_logout(request, next_page=next_page)
    else:
        logger.error('Unknown error during the logout')
        return render(request, "djangosaml2/logout_error.html", {})
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号