En-têtes de réponse Django

from django.http import HttpResponse

def index(request):
    response = HttpResponse("Hello world!")
    response["My-Header"] = "header value"
    return response
Panicky Pintail