Opened 15 years ago
Closed 15 years ago
#14081 closed (duplicate)
Tutorial 3, when 'decoupling', leaves apparently redundant code
Description ¶
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.
Yet another duplicate of #3941.