Code

#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.

Attachments (0)

Change History (1)

comment:1 Changed 16 months ago by claudep

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

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

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.