On Thu, Jul 23, 2009 at 5:33 PM, Joshua Russo<[email protected]> wrote: > On Thu, Jul 23, 2009 at 2:18 PM, Matthias Kestenholz > <[email protected]> wrote: >> >> On Thu, Jul 23, 2009 at 4:51 PM, Joshua Russo<[email protected]> >> wrote: >> > >> > Is there any difference between using import() versus not in the url >> > pattern list? >> > (r'^accounts/login/$', 'django.contrib.auth.views.login'), >> > (r'^admin/doc/', include('django.contrib.admindocs.urls')), >> >> Are you asking about import or include? Where would your imports be? > > > Sorry, I meant include.
Well, there is a big difference between the two. include() takes the python path to an URLconf file while the other form takes a view. You should read the documentation on this page if you haven't done this already: http://docs.djangoproject.com/en/dev/topics/http/urls/#topics-http-urls Matthias --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" 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-users?hl=en -~----------~----~----~----~------~----~------~--~---

