Code

Opened 4 years ago

Closed 4 years ago

#13939 closed (invalid)

Possible error in tutorial

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

Description

The tutorial tutorial02 says

Just one thing to do: We need to tell the admin that Poll objects have an admin interface. To do this, create a file called admin.py in your polls directory, and edit it to look like this:

This should be "in yoursite directory" (i.e. within project folder, not the site folder)

Attachments (0)

Change History (1)

comment:1 Changed 4 years ago by DrMeers

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

I'm not sure what you mean by "site folder". The "project folder" in the tutorial is called "mysite". The polls directory should be within that, and it is an "application directory". The polls (application) directory is be the correct place for admin.py, not mysite if that is what you are suggesting? It is application-specific admin code.

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.