Projet

Général

Profil

Bug #41653

NoReverseMatch: Reverse for 'auth_login' not found. 'auth_login' is not a valid view function or pattern name.

Ajouté par Sentry Io il y a environ 4 ans. Mis à jour il y a environ 4 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Catégorie:
-
Version cible:
-
Début:
14 avril 2020
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

https://sentry.entrouvert.org/entrouvert/publik/issues/1373/

NoReverseMatch: Reverse for 'auth_login' not found. 'auth_login' is not a valid view function or pattern name.
(33 additional frame(s) were not displayed)
...
  File "django/template/base.py", line 990, in render
    bit = node.render_annotated(context)
  File "django/template/base.py", line 957, in render_annotated
    return self.render(context)
  File "django/template/defaulttags.py", line 458, in render
    url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app)
  File "django/urls/base.py", line 91, in reverse
    return force_text(iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, **kwargs)))
  File "django/urls/resolvers.py", line 497, in _reverse_with_prefix
    raise NoReverseMatch(msg)

Internal Server Error: /_mandaye/accounts/mellon/login/

Fichiers

Révisions associées

Révision e8a253c5 (diff)
Ajouté par Frédéric Péters il y a environ 4 ans

misc: add fake auth_login view, as required by template (#41653)

Révision ab817657 (diff)
Ajouté par Frédéric Péters il y a environ 4 ans

misc: fix typo in url regex (#41653)

Historique

#1

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

  • Projet changé de Suivi des traces à Mandaye
#2

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

Ajout d'une fausse vue auth_login, juste là pour satisfaire le template.

#3

Mis à jour par Thomas Noël il y a environ 4 ans

Je ne comprends pas bien le patch, à quel moment y a-t-il une recherche sur auth_login ? (rien vu dans le code)

#4

Mis à jour par Thomas Noël il y a environ 4 ans

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

Ah, ça serait dans publik-base-theme, parce que

<a accesskey="2" class="login-link" href="{% url 'auth_login' %}" ...>

Ok donc.

#5

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

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

Yep, publik-base-theme. (ça doit faire suite à l'erreur 500 sur absence de base.html, maintenant on afficherait une page d'erreur appropriée).

commit e8a253c56ddc0d9cf9471bad4293a7a2e313c3c8
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Tue Apr 14 08:18:58 2020 +0200

    misc: add fake auth_login view, as required by template (#41653)
#6

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

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

Formats disponibles : Atom PDF