Re: urls.py import() usage?
On Thu, Jul 23, 2009 at 3:09 PM, Matthias Kestenholz < matthias.kestenh...@gmail.com> wrote: > > 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 Gotcha, Thanks. RTFM --~--~-~--~~~---~--~~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: urls.py import() usage?
there should have been a comma after the word not. On Thu, Jul 23, 2009 at 2:40 PM, Sakethwrote: > Joshua, could you clarify what you mean by "not in the url pattern list?" > > Sincerely, > Saketh > > -- > Saketh Bhamidipati > Harvard College '11 > http://people.fas.harvard.edu/~svbhamid/ > > > > On Thu, Jul 23, 2009 at 11:33 AM, Joshua Russo wrote: > >> On Thu, Jul 23, 2009 at 2:18 PM, Matthias Kestenholz < >> matthias.kestenh...@gmail.com> wrote: >> >>> >>> On Thu, Jul 23, 2009 at 4:51 PM, Joshua Russo >>> 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. >> >> > > > > --~--~-~--~~~---~--~~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: urls.py import() usage?
On Thu, Jul 23, 2009 at 5:33 PM, Joshua Russowrote: > On Thu, Jul 23, 2009 at 2:18 PM, Matthias Kestenholz > wrote: >> >> On Thu, Jul 23, 2009 at 4:51 PM, Joshua Russo >> 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 django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: urls.py import() usage?
Joshua, could you clarify what you mean by "not in the url pattern list?" Sincerely, Saketh -- Saketh Bhamidipati Harvard College '11 http://people.fas.harvard.edu/~svbhamid/ On Thu, Jul 23, 2009 at 11:33 AM, Joshua Russowrote: > On Thu, Jul 23, 2009 at 2:18 PM, Matthias Kestenholz < > matthias.kestenh...@gmail.com> wrote: > >> >> On Thu, Jul 23, 2009 at 4:51 PM, Joshua Russo >> 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. > > > --~--~-~--~~~---~--~~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: urls.py import() usage?
On Thu, Jul 23, 2009 at 2:18 PM, Matthias Kestenholz < matthias.kestenh...@gmail.com> wrote: > > On Thu, Jul 23, 2009 at 4:51 PM, Joshua Russo> 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. --~--~-~--~~~---~--~~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: urls.py import() usage?
On Thu, Jul 23, 2009 at 4:51 PM, Joshua Russowrote: > > 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? Matthias --~--~-~--~~~---~--~~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---