Projet

Général

Profil

Development #51125

compatibilité django 2.2

Ajouté par Nicolas Roche (absent jusqu'au 3 avril) il y a environ 3 ans. Mis à jour il y a plus de 2 ans.

Statut:
Fermé
Priorité:
Normal
Version cible:
-
Début:
15 février 2021
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

File "/usr/lib/python3/dist-packages/passerelle_montpellier_encombrants/models.py", line 17, in <module>
    from django.core.urlresolvers import reverse
ModuleNotFoundError: No module named 'django.core.urlresolvers'

Fichiers

0003-django22-declare-django2.2-in-setup-and-tox-51125.patch (1,96 ko) 0003-django22-declare-django2.2-in-setup-and-tox-51125.patch Nicolas Roche (absent jusqu'au 3 avril), 15 février 2021 15:41
0002-django22-on_delete-on-ForeignKey-and-OneToOne-fields.patch (7,15 ko) 0002-django22-on_delete-on-ForeignKey-and-OneToOne-fields.patch Nicolas Roche (absent jusqu'au 3 avril), 15 février 2021 15:41
0001-django22-import-django.urls-51125.patch (2,87 ko) 0001-django22-import-django.urls-51125.patch Nicolas Roche (absent jusqu'au 3 avril), 15 février 2021 15:41

Demandes liées

Lié à Passerelle - Development #51123: compatibilité django 2.2 des modules passerelle-*Fermé15 février 2021

Actions

Révisions associées

Révision 90b7762a (diff)
Ajouté par Nicolas Roche (absent jusqu'au 3 avril) il y a environ 3 ans

django22: import django.urls (#51125)

Révision a016a661 (diff)
Ajouté par Nicolas Roche (absent jusqu'au 3 avril) il y a environ 3 ans

django22: on_delete on ForeignKey and OneToOne fields (#51125)

Révision 3f717ed3 (diff)
Ajouté par Nicolas Roche (absent jusqu'au 3 avril) il y a environ 3 ans

django22: declare django2.2 in setup and tox (#51125)

Historique

#1

Mis à jour par Nicolas Roche (absent jusqu'au 3 avril) il y a environ 3 ans

#3

Mis à jour par Nicolas Roche (absent jusqu'au 3 avril) il y a environ 3 ans

Je me base sur les tests car je n'ai pas réussi à utiliser localement ce module :

$ cp -fr ~/src/passerelle-montpellier-encombrants/passerelle_montpellier_encombrants ~/src/passerelle/passerelle/contrib/

$ cat ~/.config/publik/settings/passerelle/settings.d/50montpellier_encombrants.py 
INSTALLED_APPS += ('passerelle.contrib.passerelle_montpellier_encombrants',)
TENANT_APPS += ('passerelle.contrib.passerelle_montpellier_encombrants',)

$ passerelle-server
ModuleNotFoundError: No module named 'passerelle_montpellier_encombrants'

#4

Mis à jour par Frédéric Péters il y a environ 3 ans

$ cp -fr ~/src/passerelle-montpellier-encombrants/passerelle_montpellier_encombrants ~/src/passerelle/passerelle/contrib/

Nope; il faut laisser le module où il est. (python3 setup.py develop --no-deps pour le faire connaitre de ton environnement si ce n'est pas le cas).

Et puis

INSTALLED_APPS += ('passerelle_montpellier_encombrants',)
TENANT_APPS += ('passerelle_montpellier_encombrants',)
#5

Mis à jour par Nicolas Roche (absent jusqu'au 3 avril) il y a environ 3 ans

(super, merci)

#6

Mis à jour par Frédéric Péters il y a environ 3 ans

  • Statut changé de Solution proposée à Solution validée
#7

Mis à jour par Nicolas Roche (absent jusqu'au 3 avril) il y a environ 3 ans

  • Statut changé de Solution validée à Résolu (à déployer)
commit 3f717ed37f1b80795707a998803fcb858c3281c3
Author: Nicolas ROCHE <nroche@entrouvert.com>
Date:   Mon Feb 15 14:49:50 2021 +0100

    django22: declare django2.2 in setup and tox (#51125)

commit a016a66115f4022024bf43462af7d42b7b3d608c
Author: Nicolas ROCHE <nroche@entrouvert.com>
Date:   Mon Feb 15 15:10:03 2021 +0100

    django22: on_delete on ForeignKey and OneToOne fields (#51125)

commit 90b7762a8bfd8da2d92ab1ac149d5bc359c2a2ef
Author: Nicolas ROCHE <nroche@entrouvert.com>
Date:   Mon Feb 15 14:46:43 2021 +0100

    django22: import django.urls (#51125)
#8

Mis à jour par Nicolas Roche (absent jusqu'au 3 avril) il y a plus de 2 ans

  • Statut changé de Résolu (à déployer) à Solution déployée

Formats disponibles : Atom PDF