1

I want to change response header of

> from django.http import JsonResponse

function for example change Date header how?

mohamadreza ch
  • 311
  • 4
  • 13

1 Answers1

0

You can alter it as a key-value dictionary, so:

from django.http import JsonResponse

response = JsonResponse()
response['Date'] = 'some value'
return response
Willem Van Onsem
  • 443,496
  • 30
  • 428
  • 555