decoupling example can be extended further
|Reported by:||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
In Tutorial part 3:
"Now that we’ve decoupled that, we need to decouple the ‘mysite.polls.urls’ urlconf by removing the leading “polls/” from each line:
urlpatterns = patterns('mysite.polls.views',
I tested this with:
"urlpatterns = patterns('polls.views',"
and it still works, and assuming this whole directory (polls) can be moved to other websites, it makes sense to drop out 'mysite.' from the pattern; allowing for copy and paste pluggability instead of copy paste and edit a little bit pluggability.