Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#18723 closed Uncategorized (invalid)

Decoupled urls syntax in docs differs from what works on my platform

Reported by: chris.pagnutti@… 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

I'm just running through the tutorial and found that at the end of Part 3, where decoupled urls are introduced, I was getting an error which was resolved by removing the single quotes. Like this

<li><a href="{% url polls.views.detail poll.id %}">{{ poll.question }}</a></li>

Maybe this is platform specific? I'm running django on arch linux installed from the official repos.

Change History (2)

comment:1 by Aymeric Augustin, 12 years ago

Resolution: invalid
Status: newclosed

You're following the tutorial for the in-development version of Django, but using an earlier release (probably 1.4).

Please use the documentation for your version of Django.

Duplicate of many other tickets.

comment:2 by Aymeric Augustin <aymeric.augustin@…>, 12 years ago

In [4da1d0fd65e01abe013e0d5a9174b81c6bbfa677]:

Added a warning about the {% url %} syntax change

at the point where it bites most beginners.

Refs #18787, #18762, #18756, #18723, #18705, #18689 and several duplicates.

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