def get(self, request, art_id): print(art_id) info, flag = DoArticle.get_by_art_id(art_id) if flag: return HttpResponseNotFound() return HttpResponse(json.dumps(info, ensure_ascii=False, indent=4), content_type='application/json')
def test_save(self): param = {"title":"title"} DoArticle.do_save(param)
def test_save(self): param = {"title": "title"} DoArticle.do_save(param)