Skip to content

Commit 8d248a8

Browse files
author
Tobias Zanke
committed
try import sendfile
1 parent 23919b4 commit 8d248a8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

djangodav/auth/rest.py

+5
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@
2929
except ImportError:
3030
rest_framework = None
3131

32+
try:
33+
import sendfile
34+
except ImportError:
35+
sendfile = None
36+
3237

3338
class RequestWrapper(object):
3439
""" simulates django-rest-api request wrapper """

0 commit comments

Comments
 (0)