#15720: typo leading to NoReverseMatch ---------------------------+--------------------------- Reporter: antonovga@… | Owner: nobody Status: new | Milestone: Component: Documentation | Version: 1.3 Keywords: | Triage Stage: Unreviewed Has patch: 0 | ---------------------------+--------------------------- Hi, in doc about auth near login_required decorator there is a typo in sample code of login.html template
{{{ <form method="post" action="{% url 'django.contrib.auth.views.login' %}"> }}} should be {{{ <form method="post" action="{% url django.contrib.auth.views.login %}"> }}} p.s. as for django newbie it's really hard to understand why i should place in template_dirs(settings.py) a path(_full_ path!) to login.html, while it is _in_ "project" directory and should be visible by default(ok i hear about you want to be explicit, but hey, why templates dir is default to templates then?). Without putting it in setting.py auth will throw exception "no template found". Please point out, that user should write project template directory in the settings.py file. p.p.s. It will be great if you write (or place link to if it exist) really simple hello world app with login/logout, showing how it works, not only pieces scattered through doc page. It will save a lot of time for newbies. -- Ticket URL: <http://code.djangoproject.com/ticket/15720> Django <http://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 django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.