Development #64442
Mis à jour par Paul Marillonnet il y a presque 2 ans
pour la migration à django 3, on utilise le backport de django déjà disponible dans bullseye : https://packages.debian.org/bullseye-backports/python3-django
mais dans bullseye la seule version de python3-django-tables2 disponible est la 2.1.1 qui de toute évidence n’est pas compatible avec django 3.
exemple, en avançant sur #64305 je me prends
<pre>
File "/tmp/tox-paul/authentic/authentic-py3-dj32-drf312-djtables211/lib/python3.10/site-packages/django_tables2/__init__.py", line 1, in <module>
from .columns import (
File "/tmp/tox-paul/authentic/authentic-py3-dj32-drf312-djtables211/lib/python3.10/site-packages/django_tables2/columns/__init__.py", line 1, in <module>
from .base import BoundColumn, BoundColumns, Column, library
File "/tmp/tox-paul/authentic/authentic-py3-dj32-drf312-djtables211/lib/python3.10/site-packages/django_tables2/columns/base.py", line 10, in <module>
from ..utils import (
File "/tmp/tox-paul/authentic/authentic-py3-dj32-drf312-djtables211/lib/python3.10/site-packages/django_tables2/utils.py", line 7, in <module>
from django.db.models.fields import FieldDoesNotExist
ImportError: cannot import name 'FieldDoesNotExist' from 'django.db.models.fields' (/tmp/tox-paul/authentic/authentic-py3-dj32-drf312-djtables211/lib/python3.10/site-packages/django/db/models/fields/__init__.py)
ERROR: InvocationError
</pre>
(À partir de la version 3 de django, cette exception FieldDoesNotExist est sagement rangée dans @django.core.exceptions@)
mais dans bullseye la seule version de python3-django-tables2 disponible est la 2.1.1 qui de toute évidence n’est pas compatible avec django 3.
exemple, en avançant sur #64305 je me prends
<pre>
File "/tmp/tox-paul/authentic/authentic-py3-dj32-drf312-djtables211/lib/python3.10/site-packages/django_tables2/__init__.py", line 1, in <module>
from .columns import (
File "/tmp/tox-paul/authentic/authentic-py3-dj32-drf312-djtables211/lib/python3.10/site-packages/django_tables2/columns/__init__.py", line 1, in <module>
from .base import BoundColumn, BoundColumns, Column, library
File "/tmp/tox-paul/authentic/authentic-py3-dj32-drf312-djtables211/lib/python3.10/site-packages/django_tables2/columns/base.py", line 10, in <module>
from ..utils import (
File "/tmp/tox-paul/authentic/authentic-py3-dj32-drf312-djtables211/lib/python3.10/site-packages/django_tables2/utils.py", line 7, in <module>
from django.db.models.fields import FieldDoesNotExist
ImportError: cannot import name 'FieldDoesNotExist' from 'django.db.models.fields' (/tmp/tox-paul/authentic/authentic-py3-dj32-drf312-djtables211/lib/python3.10/site-packages/django/db/models/fields/__init__.py)
ERROR: InvocationError
</pre>
(À partir de la version 3 de django, cette exception FieldDoesNotExist est sagement rangée dans @django.core.exceptions@)