Opened 14 years ago
Closed 14 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: | no | UI/UX: | no |
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)
Note:
See TracTickets
for help on using tickets.
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". Thepolls
(application) directory is be the correct place foradmin.py
, notmysite
if that is what you are suggesting? It is application-specific admin code.