Opened 12 years ago

Closed 12 years ago

#19590 closed Bug (invalid)

Incorrect quotes in template example

Reported by: msb Owned by: nobody
Component: Documentation Version: 1.4
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

https://docs.djangoproject.com/en/dev/topics/auth/default/

In the sample registration/login.html template this line:

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

Should be

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

(No quotes.)

That certainly fixes it for me.

Change History (1)

comment:1 by Claude Paroz, 12 years ago

Resolution: invalid
Status: newclosed

You are mixing Django versions, here. In dev version, this is the right syntax.

https://docs.djangoproject.com/en/dev/ref/templates/builtins/#url

Note: See TracTickets for help on using tickets.
Back to Top