Code

Opened 9 months ago

Closed 9 months ago

#20732 closed Uncategorized (invalid)

Writing your First Django App, part 3, error

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

Description

When creating a template for the first poll application (Writing your first django app - part 3), the tutorial states:

"First, create a directory called templates in your polls directory."

Index.html cannot be found in this directory though, in the end I put my index.html in the templates/polls directory. So shouldn't the tutorial state:

"First, create a directory called polls in your templates directory."

Thanks for clearing that up

Attachments (0)

Change History (1)

comment:1 Changed 9 months ago by claudep

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

Read a bit later:
Within the templates directory you have just created, create another directory called polls, and within that create a file called index.html. In other words, your template should be at polls/templates/polls/index.html.

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.