Tutorial 3: In URL decoupling, "mysite.polls.views" should simply be "polls.views"
|Reported by:||larrik||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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:
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!