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