Added json views
This commit is contained in:
parent
77713d81b0
commit
377a6bacc4
2 changed files with 13 additions and 0 deletions
8
views/json.py
Normal file
8
views/json.py
Normal file
|
@ -0,0 +1,8 @@
|
|||
from django.http import HttpResponse
|
||||
|
||||
def json_response(context):
|
||||
response = HttpResponse(context)
|
||||
response['Content-Type'] = 'application/pdf'
|
||||
return response
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue