views.py 文件源码

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

项目:itaplay 作者: lhalam 项目源码 文件源码
def get(self, request, mac):
        """
        Handling GET method.
        :args
            request: Request to View.
            mac: mac-address of player.
        :return: HttpResponse with project's template and template's hashsum of player, 
        gotten by mac-address.
        """
        player = Player.objects.get(mac_address=mac)
        template = player.project.project_template
        hashsum = player.project.project_hash
        return HttpResponse(json.dumps({"template" : template, 'hashsum': hashsum}))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号