Added json views

This commit is contained in:
Mark Riedesel 2013-11-10 22:00:41 -06:00
parent 77713d81b0
commit 377a6bacc4
2 changed files with 13 additions and 0 deletions

8
views/json.py Normal file
View file

@ -0,0 +1,8 @@
from django.http import HttpResponse
def json_response(context):
response = HttpResponse(context)
response['Content-Type'] = 'application/pdf'
return response