#10081 closed (duplicate)
In tutorial 3, url decoupling is incomplete
Description ¶
in tutorial 3, the last mention of polls/urls.py still references the site in wich it's installed, missing the point on decoupling:
urlpatterns = patterns('mysite.polls.views', (r'^$', 'index'), (r'^(?P<poll_id>\d+)/$', 'detail'), (r'^(?P<poll_id>\d+)/results/$', 'results'), (r'^(?P<poll_id>\d+)/vote/$', 'vote'), )
Should be:
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'), )
I'm a complete newbie but that makes more sense to me (and it works).
Change History (2)
comment:1 by , 16 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
comment:2 by , 16 years ago
(and seeing as this was a duplicate of no less than six other tickets, it's time once again to ask that people please search the tracker before opening new tickets)
Note:
See TracTickets
for help on using tickets.
Duplicate of #9860