Code

Opened 6 years ago

Closed 6 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: master
Severity: Keywords: tutorial decoupling
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

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!

Attachments (0)

Change History (1)

comment:1 Changed 6 years ago by mattmcc

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to duplicate
  • Status changed from new to closed

Dup of #7442.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.