Cabeçalhos de resposta do django
from django.http import HttpResponse
def index(request):
response = HttpResponse("Hello world!")
response["My-Header"] = "header value"
return response
Panicky Pintail