views.py 文件源码

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

项目:dach 作者: ffaraone 项目源码 文件源码
def uninstall(request, oauth_id):
    if request.method == 'DELETE':
        app_name = request.resolver_match.app_name
        if not app_name:
            raise Exception('you must include the dach.urls with the app_name')
        get_backend().delete(oauth_id)
        post_uninstall.send(
            apps.get_app_config(app_name),
            oauth_id=oauth_id
        )
        logger.info('addon successfully uninstalled')
        return HttpResponse(status=204)
    return HttpResponseNotAllowed(['delete'])
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号