#13747: Post 1.2 Development code wrongly included in 1.2 doc on Custom
Management
Commands
----------------------------------------+-----------------------------------
Reporter: metamemetics | Owner: nobody
Status: new | Milestone:
Component: Documentation | Version: 1.2
Keywords: Custom Management Commands | Stage: Unreviewed
Has_patch: 0 |
----------------------------------------+-----------------------------------
http://docs.djangoproject.com/en/1.2/howto/custom-management-commands/
The last line of the 2nd example code block is:
{{{
self.stdout.write('Successfully closed poll "%s"\n' % poll_id)
}}}
This will not work unless you are using a development repository from
within the last week, or else you will get the error 'Command' object has
no attribute 'stdout'. Since it is a fairly recent addition I assume it
should be only in the development documentation and not the 1.2
documentation.
--
Ticket URL: <http://code.djangoproject.com/ticket/13747>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.