Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#9767 closed (duplicate)

tutorial part 3 - Decoupling the URLconfs - module correction

Reported by: rduplain Owned by: nobody
Component: Uncategorized Version: 1.0
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

In the tutorial part 3, Decoupling the URLconfs, urlpatterns should point to polls.views not mysite.polls.views, e.g.

urlpatterns = patterns('polls.views',
    (r'^$', 'index'),
    (r'^(?P<poll_id>\d+)/$', 'detail'),
    (r'^(?P<poll_id>\d+)/results/$', 'results'),
    (r'^(?P<poll_id>\d+)/vote/$', 'vote'),
)

Leaving it at mysite.polls.views would not fully decouple the URLconf.

Change History (2)

comment:1 by James Bennett, 16 years ago

Resolution: duplicate
Status: newclosed

In the future, please search for existing tickets before filing new ones.

Duplicate of #7209, #7660, #7442.

comment:2 by rduplain, 16 years ago

My apologies. I did search, but apparently didn't see those tickets. I see them now, thank you.

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