def view_with_header(request):
 response = HttpResponse()
 response['X-DJANGO-TEST'] = 'Slartibartfast'
 return response

def view_with_header ( request ) : response = HttpResponse ( ) response [ 'X-DJANGO-TEST' ] = 'Slartibartfast' return response
a view that has a custom header .