Opened 9 years ago

Closed 9 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: UI/UX:

Description

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/views.py``::

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

Change History (1)

comment:1 Changed 9 years ago by polarcowz@…

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

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