1from django.http import HttpResponse
2return HttpResponse('<h1>Hello World</h1>')
1reponse = HttpResponse(content)
2response['Content-Type'] = 'application/json' # or application/text, etc.
3
4# one-line usage
5reponse = HttpResponse(content, content_type:'application/json')