Opened 16 years ago

Closed 16 years ago

#7650 closed (duplicate)

Tutorial 3: In URL decoupling, "mysite.polls.views" should simply be "polls.views"

Reported by: larrik Owned by: nobody
Component: Documentation Version: dev
Severity: Keywords: tutorial decoupling
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Hello,

I've been going through the tutorial, and I noticed an issue with Tutorial 3's decoupling of the "polls" URLs from the rest of the site. (Note that this is the online version of the tutorial, ie. "http://www.djangoproject.com/documentation/tutorial03/")

For instance, in the beginning of Tutorial 4 is the line:
HttpResponseRedirect(reverse('mysite.polls.views.results', args=(p.id,)))

Which in my understanding should not have the "mysite." in it at all. Looking back at Tutorial 3, you left the "mysite." in the line:
urlpatterns = patterns('mysite.polls.views',

It seems to me (and I'm just getting into Django, so I can certainly be confused), that this line should simply be:
urlpatterns = patterns('polls.views',
to be truly decoupled from the "mysite" project.

If I'm mistaken, I'm certainly curious as to where my thinking has gone wrong.

P.S. Django looks great, by the way, and seems to finally be the thing to break me from writing my own everything. Thanks!

Change History (1)

comment:1 by Matt McClanahan, 16 years ago

Resolution: duplicate
Status: newclosed

Dup of #7442.

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