Just a quick question that might be an easy answer but I am curious.
Why is it that in the URL dispatcher all the direct to views use the
first argument in urlpatterns but when we use include it doesn't
matter? Example:

urlpatterns = patterns('myapp.views',
    (r'^foo', include('myapp.foo.urls')),
    url(r'^$', 'home'),
)

as opposed to:
urlpatterns = patterns('myapp',
    (r'^foo', include('foo.urls')),
    url(r'^$', 'views.home'),
)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to