Development #51125
compatibilité django 2.2
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
Demandes liées
Révisions associées
django22: on_delete on ForeignKey and OneToOne fields (#51125)
django22: declare django2.2 in setup and tox (#51125)
Historique
Mis à jour par Nicolas Roche (absent jusqu'au 3 avril) il y a environ 3 ans
- Lié à Development #51123: compatibilité django 2.2 des modules passerelle-* ajouté
Mis à jour par Nicolas Roche (absent jusqu'au 3 avril) il y a environ 3 ans
- Fichier 0003-django22-declare-django2.2-in-setup-and-tox-51125.patch 0003-django22-declare-django2.2-in-setup-and-tox-51125.patch ajouté
- Fichier 0002-django22-on_delete-on-ForeignKey-and-OneToOne-fields.patch 0002-django22-on_delete-on-ForeignKey-and-OneToOne-fields.patch ajouté
- Fichier 0001-django22-import-django.urls-51125.patch 0001-django22-import-django.urls-51125.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
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'
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',)
Mis à jour par Frédéric Péters il y a environ 3 ans
- Statut changé de Solution proposée à Solution validée
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)
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
django22: import django.urls (#51125)