9 lines
171 B
Python
9 lines
171 B
Python
from django.http import HttpResponse
|
|
|
|
def sendfile(request, filename, **kwargs):
|
|
response = HttpResponse()
|
|
response['X-Sendfile'] = filename
|
|
|
|
return response
|
|
|