Opened 6 years ago

Closed 6 years ago

#12993 closed (invalid)

error in tutorial04

Reported by: djazel <datum2@…> Owned by: nobody
Component: Uncategorized Version: 1.1
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

I am a first time django user, and have just completed the (very useful) tutorial.
I believe that the following two points might be errors:-


1). On page: http://docs.djangoproject.com/en/dev/intro/tutorial04/ :-

The first code block contains the line

{% csrf_token %}

When viewed in the browser this gives :-

TemplateSyntaxError at /polls/1/
Invalid block tag: 'csrf_token'

Changing the line to the following fixes the problem:-

{{ csrf_token }}

2). Note also that the meaning of the following is not defined in the tutorial:-

 {{ parameter }} and {% pythoncode %} 

Change History (1)

comment:1 Changed 6 years ago by Alex

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

You're using django 1.1 (as your version indicates), but following the development version docs. You need to make sure your docs version and code version sync up.

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