On Feb 3, 2:34 pm, Edgard Matos <edgardma...@gmail.com> wrote:
> Hello!
>
> I need help!
> In my project, I need authenticate user in a module and sends user to
> previews page.
>
> I was try so:
>
>   url_to_redirect = request.get_full_path()
>       return HttpResponseRedirect(reverse('users.views.add',
> args=(url_to_redirect,)))
>
> And in my view, users.views.add, I get the url_to_redirect, to sends the
> user.
> But a exception occurs: Reverse for '<function add at 0x019232F0>' with
> arguments '(u'/links/adicionar/',)' and keyword arguments '{}' not found.
>
> How can I do this?
>
> Very thanks!

You're doing something a bit weird here. You've got the url of the
existing request, and for some reason you're passing it in as the
parameter for the view you want to redirect to. Why are you doing
that? You want to pass the parameters for the user.views.add view,
whatever they are - although if it's anything like the built-in admin
add views, it doesn't take any parameters at all.
--
DR.
--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to