#16118: Small error in login form example
---------------------------+-------------------------------
 Reporter:  yuval.baror@…  |          Owner:  nobody
     Type:  Uncategorized  |         Status:  new
Milestone:                 |      Component:  Documentation
  Version:  1.3            |       Severity:  Normal
 Keywords:                 |   Triage Stage:  Unreviewed
Has patch:  0              |  Easy pickings:  0
---------------------------+-------------------------------
 The login form example contains the following line:

 <form method="post" action="{% url 'django.contrib.auth.views.login' %}">

 When I tried using this I got an error:
 NoReverseMatch while rendering: Reverse for
 ''django.contrib.auth.views.login''

 After searching online I saw an answer on stackoverflow:
 http://stackoverflow.com/questions/4578685/noreversematch-while-rendering-
 reverse-for-django-contrib-auth-views-login

 The solution suggested there (removing the single quotes around the url)
 worked for me.
 Perhaps it would be best to update the example to prevent others from
 encountering the same error.

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

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to