On Wed, Jun 16, 2010 at 11:48 PM, Siddharth. S <sid2...@gmail.com> wrote:
> Hi,
>
> I did the following to allow the page to be loaded with or without the
> '/' at the end:
>
> (r'^mysite(/*)$', redirect_to, {'url':'/mysite/home/'}),
>
> in URL patterns. I got an error page, and the following error:
>
> Exception Type: TypeError at /mysite/
> Exception Value: redirect_to() got multiple values for keyword
> argument 'url'
>
> Can you tell me what the problem is? Is there sufficient information?

Everything grouped with ( ) in the regular expressions gets passed to
the view as arguments.

Try with: r"^mysite/?$"

Regards,

~Rolando

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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.

  • URLConf Siddharth. S
    • Re: URLConf Rolando Espinoza La Fuente

Reply via email to