﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
18915	Unused import in resulting polls/urls.py module	intruder0815@…	nickmartini	"There's an unused import in the resulting polls.urls module in section https://docs.djangoproject.com/en/dev/intro/tutorial03/#decoupling-the-urlconfs .

  Now that we've decoupled that, we need to decouple the polls.urls URLconf by removing the leading ""polls/"" from each line, and removing the lines registering the admin site. Your polls/urls.py file should now look like this:

{{{
from django.conf.urls import patterns, include, url

urlpatterns = patterns('polls.views',
    url(r'^$', 'index'),
    url(r'^(?P<poll_id>\d+)/$', 'detail'),
    url(r'^(?P<poll_id>\d+)/results/$', 'results'),
    url(r'^(?P<poll_id>\d+)/vote/$', 'vote'),
)
}}}

The imported 'include' will never be used.


"	Cleanup/optimization	closed	Documentation	dev	Normal	fixed	cleanup unused import		Accepted	1	0	0	0	1	0
