Re: am i using direct_to_template the wrong way?

2008-04-14 Thread Filipe Correia

Thank you. My eyes were repeatedly missing it, somehow :|

Cheers,
Filipe

On Apr 14, 7:21 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On Mon, Apr 14, 2008 at 1:37 PM, Filipe Correia <[EMAIL PROTECTED]> wrote:
>
> > 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'}),
>
> You have an extra colon before the close quote for 'template'.  So
> direct_to_template isn't getting its required 'template' argument, instead
> it is getting 'template:'.
>
> Karen
>
>
>
> > )
>
> > 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 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
-~--~~~~--~~--~--~---



Re: am i using direct_to_template the wrong way?

2008-04-14 Thread Karen Tracey
On Mon, Apr 14, 2008 at 1:37 PM, Filipe Correia <[EMAIL PROTECTED]> wrote:

>
> 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'}),


You have an extra colon before the close quote for 'template'.  So
direct_to_template isn't getting its required 'template' argument, instead
it is getting 'template:'.

Karen


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



am i using direct_to_template the wrong way?

2008-04-14 Thread Filipe Correia

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