On Oct 11, 2:55 pm, "F.Pighi" <[EMAIL PROTECTED]> wrote:
> Hi all, I'm a newbie and I'm having some trouble with the login
> process.
>
> I just want to redirect the user to /users/(?P<username>[^/]+)/profile
> or just /users/(?P<username>[^/]+) after a successful login.
>
> How can I do it? I tried using the default login view it seems I have
> to use the LOGIN_REDIRECT_URL variable in the settings.py, but I don't
> know how to specify a dynamic url.
>
> Should I write my own custom login view or is there a way to
> accomplish this even with the default one?
>
> What am I missing here?
>
> Thank you very much
You can redirect to something like /logged_in, this view has access to
request.user so can redirect you to /users/username/
--
Arnaud
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---