I should have known it was something that simple. Thank you Malcolm.

ryan


On Apr 19, 1:44 am, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Fri, 2008-04-18 at 23:15 -0700, Ryan Vanasse wrote:
>
> [...]
>
> > My urls.py looks like this (I'm just getting started on this project.)
>
> > from django.conf.urls.defaults import *
> > from theremnant.eventcalendar.views import upcomingEvents
>
> > urlpatterns = patterns('',
> >     # Example:
> >     # (r'^theremnant/', include('theremnant.foo.urls')),
> >     (r'^calendar/', upcomingEvents()),
>
> This is a problem line. You should be putting in the function object
> that Django will call. Instead, you are calling the function and putting
> in the result of that function call (the result is an HttpResponse,
> which is where the error is coming from).
>
> So instead of upcomingEvents(), just write it as
>
>         (r'^calendar/', upcomingEvents),
>
> Leaving off the parentheses means you are referring to the function
> object, not calling the function.
>
> Regards,
> Malcolm
>
> --
> Depression is merely anger without 
> enthusiasm.http://www.pointy-stick.com/blog/
--~--~---------~--~----~------------~-------~--~----~
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