Code

Opened 6 years ago

Closed 6 years ago

#8977 closed (duplicate)

no admin.py

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

Description

from:
http://docs.djangoproject.com/en/dev/intro/tutorial02/#intro-tutorial02
"Just one thing to do: We need to tell the admin that Poll objects have an admin interface. Edit the mysite/polls/admin.py file and add the following to the bottom of the file:"

Following the tutorial through two times, I do not have that file (admin.py). I added what it suggested to a file i created in that location, named admin.py, but that did not expose the poll to the admin piece.

Attachments (0)

Change History (2)

comment:1 Changed 6 years ago by kmtracey

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

This has already been reported in #8891, #8915, #8932. You do need to create the admin.py file, and I think the development server needs to be restarted as well.

comment:2 Changed 6 years ago by kmtracey

  • Resolution set to duplicate
  • Status changed from new to closed

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.