Code

#19815 closed Cleanup/optimization (fixed)

unused import in urls.py

Reported by: pedro.calcao@… Owned by: nobody
Component: Documentation Version: 1.4
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation:
Needs tests: Patch needs improvement:
Easy pickings: yes UI/UX: no

Description

This is not a big deal at all, but in the page: https://docs.djangoproject.com/en/1.4/intro/tutorial03/, when we refactor the urls.py, the urls.py code that belongs to the polls has the following imports:

from django.conf.urls import patterns, include, url

In this case, include is not needed, and to keep things perfectly tidy, it shouldn't be imported.

Attachments (0)

Change History (1)

comment:1 Changed 17 months ago by Tim Graham <timograham@…>

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

In 9eb7d59665972690bea790fd1ed12eeb142c0ee4:

[1.4.x] Fixed #19815 - Removed an unused import in tutorial 3.

Thanks pedro.calcao@ for the report.

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.