views.py 文件源码

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

项目:dach 作者: ffaraone 项目源码 文件源码
def descriptor(request):
    if request.method == 'GET':
        app_name = request.resolver_match.app_name
        if not app_name:
            raise Exception('you must include the dach.urls with the app_name')
        descritor_tpl = DACH_CONFIG['appconfig'][app_name].get('descriptor',
            '{}/atlassian-connect.json'.format(app_name))
        return render(request, descritor_tpl, content_type='application/json')

    return HttpResponseNotAllowed(['get'])
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号