Hi,
I'm getting the following error when using a direct_to_template view:
TypeError at /help/
direct_to_template() takes at least 2 non-keyword arguments (1 given)
I have the following code on my urls.py:
urlpatterns = patterns('django.views.generic.simple',
(r'^$', 'redirect_to', {'url': 'search/'}),
(r'^help/$', 'direct_to_template', {'template:': 'help.html'}),
)
I'm sure I'm missing something trivial... only I don't know what. any
thoughts?
Btw, I'm using the trunk (rev 7420).
Thanks,
Filipe
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---