Example #1
0
 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')
Example #2
0
 def test_save(self):
     param = {"title":"title"}
     DoArticle.do_save(param)
Example #3
0
 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')
Example #4
0
 def test_save(self):
     param = {"title": "title"}
     DoArticle.do_save(param)