Open andonij opened 2 years ago
Dear @andonij, thank you for your feed back!
As you may have seen in the newer release of daiquiri we indeed moved to django-sendfile2
, however we are still not happy with this solution and we are looking for other alternatives. So this aspect of daiquiri will evolve in the near future, I'll keep you informed.
BTW, are you using dq-dev (docker) or are you running daiquiri directly in your OS?
In case you have issues in configuring your static file server, please let us know, we may be able to help.
I wish you a nice day.
Hi @agy-why
Currently using daiquiri directly with mariadb and apache (currently its more like an internal thing)
I will have to check the docker before deploying it officially. Thanks!
The new django version 4 deprecates
django.utils.http.urlquote
anddjango.utils.encoding.force_text
breaking downloads usingdjango-sendfile
.The package seems to be unmantained, maybe change to django-sendfile2?
Solution is to manually change
__init__.py
file of thedjango-sendfile
package:from django.utils.encoding import force_unicode as force_text
change tofrom django.utils.encoding import force_str as force_text
from django.utils.http import urlquote
change tofrom urllib.parse import quote as urlquote