[后端]修改后端公告GET接口,增加返回公告总条数,总页数

This commit is contained in:
sxw
2015-08-08 08:41:20 +08:00
parent a03b8af79d
commit fc57dcbde4
3 changed files with 13 additions and 5 deletions

View File

@@ -11,4 +11,4 @@ class AdminTemplateView(APIView):
try:
return HttpResponse(open(path).read(), content_type="text/html")
except IOError:
return HttpResponse(u"模板不存在", content_type="text/html")
raise Http404