Opened 2 years ago

Closed 2 years ago

#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.

Change History (1)

comment:1 Changed 2 years 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.

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