fixes for django 1.5.x
This commit is contained in:
parent
36c7e95788
commit
68b0e525ca
2 changed files with 6 additions and 2 deletions
|
|
@ -38,7 +38,11 @@ def x_sendfile(fname,download_name=None):
|
|||
|
||||
return response
|
||||
|
||||
if getattr(settings,'SENDFILE',False) == 'x_sendfile':
|
||||
try:
|
||||
__sendfile = getattr(settings,'SENDFILE',False) == 'x_sendfile'
|
||||
except:
|
||||
__sendfile = False
|
||||
if __sendfile == 'x_sendfile':
|
||||
sendfile = x_sendfile
|
||||
else:
|
||||
sendfile = basic_sendfile
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue