#14081: Tutorial 3, when 'decoupling', leaves apparently redundant code
---------------------------+------------------------------------------------
Reporter: nickd | Owner: nobody
Status: new | Milestone:
Component: Documentation | Version: 1.2
Keywords: Tutorial | Stage: Unreviewed
Has_patch: 0 |
---------------------------+------------------------------------------------
at the end of tutorial 3:
http://docs.djangoproject.com/en/dev/intro/tutorial03/#decoupling-the-
urlconfs
It talks about 'decoupling' the poll-app from the base site. After moving
the URLconf to the app, it leaves in the code:
{{{urlpatterns = patterns('mysite.polls.views'}}}
This still leaves it coupled to the base site installation (and every app
you use would need to be tailored to this). Changing this to use just an
app-relative reference i.e.
{{{urlpatterns = patterns('polls.views',}}}
appears to work fine, and achieves the decoupling from the base project.
Either this is deliberate, and unexplained, or unintentional.
--
Ticket URL: <http://code.djangoproject.com/ticket/14081>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.