后台 admin 模板样式优化

This commit is contained in:
virusdefender
2015-08-07 20:02:08 +08:00
parent b1a935a894
commit 01b13bf823
2 changed files with 27 additions and 8 deletions

View File

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