0
Ich laufe weiter zu einem NoReverseMatch
Fehler auf Django 1.10, während frühere Versionen keine Probleme damit haben.Fehler NoReverseMatch
gerenderte Vorlage:
{% extends "loginBase.html" %}
{% block content %}
<h1>Login:</h1>
<form class="form-horizontal" role="form" method="post" action="{% url 'django.contrib.auth.views.login' %}">
{% csrf_token %}
{% if form.errors %}
<p>Your username and password didn't match. Please try again.</p>
{% endif %}
urls.py
url(r'^login/$', views.login, {'template_name': 'login.html', 'authentication_form': LoginForm}, name='login'),
Alle Ideen, was das Problem sein könnte?
Mögliche Duplikat [Was ein NoReverseMatch Fehler ist, und wie kann ich es beheben ?] (http://stackoverflow.com/questions/38390177/what-is-a-noreversematch-error-and-how-do-fix-it) – Sayse
Verwenden Sie nur '{% url 'Login'%}' –
Mögliches Duplikat von [NoReverseMatch Error] (http://stackoverflow.com/questions/4981026/noreversematch-error) –