Hi

going thru the Django tutorial - and got to this part:

https://docs.djangoproject.com/en/1.4/intro/tutorial03/#decoupling-the-urlconfs

my editor has a python lint program running...and it complains about 
'include' at the import being written but unused...

is there any reason this is left in for the tutorial? or is this just a not 
needed leftover or error?  I just want to be sure I am not missing some 
detail....because it works with or without...Im just wondering why they 
left it in.

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'),)

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/e-491kk7wf8J.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to