Opened 13 years ago
Closed 13 years ago
#18060 closed Cleanup/optimization (fixed)
Fix documentation for "Writing custom django-admin command" to make closepoll.py work with code from cited tutorial
Reported by: | anonymous | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | 1.4 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
s/example.polls.models/polls.models/
on https://docs.djangoproject.com/en/dev/howto/custom-management-commands/
As is, the code for polls/management/commands/closepoll.py shown near the
top of https://docs.djangoproject.com/en/dev/howto/custom-management-commands/
does not work with code from the tutorial cited at the top of the web page,
because the tutorial code does not use an "example" directory.
The solution is easy, remove "example." form the second line of the code
shown for polls/management/commands/closepoll.py.
Attachments (1)
Change History (4)
by , 13 years ago
Attachment: | 18060.diff added |
---|
comment:1 by , 13 years ago
Has patch: | set |
---|
comment:2 by , 13 years ago
Triage Stage: | Unreviewed → Ready for checkin |
---|
documentation diff