Bonjour,

J'utilisais django-sendfile https://pypi.org/project/django-sendfile/ en python 3.7

Ce module est obsolète.

Je dois passer à python 3.11.

Aucun des module django-sendfile2 https://pypi.org/project/django-sendfile2/
ni django-downloadview
https://pypi.org/project/django-downloadview/

ne prennent en compte python 3.11.

avec django-downloadview, j'ai l'erreur

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
  File "/home/moi/.asdf/installs/python/3.11.6/lib/python3.11/urllib/parse.py", line 1064, in _splittype
    match = _typeprog.match(url)
            ^^^^^^^^^^^^^^^^^^^^
TypeError: cannot use a string pattern on a bytes-like object
Quel module préconisez-vous pour télécharger des fichiers en python 3.11 et Django 4.0 ?

Merci