Opened 13 years ago

Closed 13 years ago

#1710 closed defect (fixed)

Tutorial 4 Unneeded Import

Reported by: polarcowz@… Owned by: Jacob
Component: Documentation Version: magic-removal
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


The current version (SVN Revision 2766) of Tutorial 4 in the "docs/" folder has an unneeded and possibly confusing import. The importing of Http404 from a previous example is still taking place, even though all the code that was using it in earlier examples has been updated to use the shortcut "get_object_or_404".

So let's create a ``vote()`` function in ``mysite/polls/``::

    from django.shortcuts import get_object_or_404, render_to_response
    from django.http import Http404,HttpResponseRedirect

Change History (1)

comment:1 Changed 13 years ago by polarcowz@…

Resolution: fixed
Status: newclosed

This appears to be fixed as of the latest Subversion release (2799). I am closing the ticket as a result.

Note: See TracTickets for help on using tickets.
Back to Top