9 lines
194 B
Python
9 lines
194 B
Python
|
import json
|
||
|
from django.http import Http404, HttpResponse
|
||
|
|
||
|
|
||
|
def render_to_json(response):
|
||
|
content = json.dumps(response)
|
||
|
return HttpResponse(content, 'application/json; charset=utf-8')
|
||
|
|