On Jan 19, 2008 9:37 PM, Lee Hinde <[EMAIL PROTECTED]> wrote:

>
> [snipped]
>
> > from django.conf.urls.defaults import *
> > # from winesite.winecomp import views
> >
> > urlpatterns = patterns('',
> > # Example:
> > # (r'^winesite/', include('winesite.foo.urls')),
> >
> > # Uncomment this for admin:
> > (r'^admin/', include('django.contrib.admin.urls')),
> > (r'^search/$', include('winesite.winecomp.views.search')),
> >
> > )
> >
>

Since search is a function, as you show later, you do not want to have the
include() wrapped around it here.  include() is for specifying a whole other
URLconf module to handle the tree of urls specified by the first item in the
tuple.  You might want to review the doc here:

http://www.djangoproject.com/documentation/0.96/url_dispatch/#id1

since you might actually want to set things up this way at some point.  But
for what you are doing right now, try just removing the include().

Karen

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to