Tutorial 3, when 'decoupling', leaves apparently redundant code
|Reported by:||nickd||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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.