示例#1
0
文件: views.py 项目: wangpanjun/blog
 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')
示例#2
0
 def test_save(self):
     param = {"title":"title"}
     DoArticle.do_save(param)
示例#3
0
文件: views.py 项目: wangpanjun/blog
 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')
示例#4
0
 def test_save(self):
     param = {"title": "title"}
     DoArticle.do_save(param)