Code

Opened 2 years ago

Closed 2 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)

18060.diff (509 bytes) - added by smuss 2 years ago.
documentation diff

Download all attachments as: .zip

Change History (4)

Changed 2 years ago by smuss

documentation diff

comment:1 Changed 2 years ago by smuss

  • Has patch set
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 2 years ago by claudep

  • Triage Stage changed from Unreviewed to Ready for checkin

comment:3 Changed 2 years ago by claudep

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

In [17936]:

Fixed #18060 -- Corrected the import path of an example in custom management commands docs. Thanks smuss for the patch.

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.