[Django] #18671: <form method="post" action="{% url 'django.contrib.auth.views.login' %}">

61 views
Skip to first unread message

Django

unread,
Jul 26, 2012, 2:42:06 AM7/26/12
to django-...@googlegroups.com
#18671: <form method="post" action="{% url 'django.contrib.auth.views.login' %}">
------------------------------------+--------------------
Reporter: bartek.rychlicki@… | Owner: nobody
Type: Uncategorized | Status: new
Component: Documentation | Version: 1.4
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
------------------------------------+--------------------
https://docs.djangoproject.com/en/dev/topics/auth/#django.contrib.auth.views.login
contains a sample login form which will throw
NoReverseMatch: Reverse for ''django.contrib.auth.views.login'' with
arguments '()' and keyword arguments '{}' not found.

the code:
<form method="post" action="{% url 'django.contrib.auth.views.login' %}">
should be
<form method="post" action="{% url django.contrib.auth.views.login %}">
which fixes the problem

my django is 1.4

--
Ticket URL: <https://code.djangoproject.com/ticket/18671>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jul 26, 2012, 3:00:42 AM7/26/12
to django-...@googlegroups.com
#18671: <form method="post" action="{% url 'django.contrib.auth.views.login' %}">
------------------------------------+--------------------------------------
Reporter: bartek.rychlicki@… | Owner: nobody
Type: Uncategorized | Status: closed
Component: Documentation | Version: 1.4
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------------+--------------------------------------
Changes (by russellm):

* status: new => closed
* needs_better_patch: => 0
* resolution: => invalid
* needs_tests: => 0
* needs_docs: => 0


Comment:

You're using the documentation for the development version, but pointing
using Django 1.4. If you use the
[https://docs.djangoproject.com/en/1.4/topics/auth/#django.contrib.auth.views.login
documentation for Django 1.4], you'll see that there is a {% load url from
future %} tag required. This is due to a change int he {% url %} tag that
we have been phasing in since Django 1.3. See the
[https://docs.djangoproject.com/en/1.3/releases/1.3/#changes-to-url-and-
ssi Django 1.3 release notes] for more details.

--
Ticket URL: <https://code.djangoproject.com/ticket/18671#comment:1>

Django

unread,
Dec 5, 2013, 9:30:20 AM12/5/13
to django-...@googlegroups.com
#18671: <form method="post" action="{% url 'django.contrib.auth.views.login' %}">
------------------------------------+--------------------------------------
Reporter: bartek.rychlicki@… | Owner: nobody
Type: Uncategorized | Status: closed
Component: Documentation | Version: 1.5
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage: Unreviewed

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
------------------------------------+--------------------------------------
Changes (by anonymous):

* version: 1.4 => 1.5


--
Ticket URL: <https://code.djangoproject.com/ticket/18671#comment:2>

Reply all
Reply to author
Forward
0 new messages