I am assuming that you already have an URL in mind that you want to redirect
to after login. To automatically go to that URL, simply put this setting in
your "settings.py" file:

LOGIN_REDIRECT_URL = '/the_url_you_want/to_redirect_to/'

Upon login, the member will automagically end up at that URL. In the view
for that page, you should be able to get hold of the logged in member using
this:

user = request.user

and then customise your response for that specific user. Hope that helps.

On 30 September 2010 17:59, octopusgrabbus <[email protected]>wrote:

> I am looking for either programming samples or specific documentation
> that show how a user is redirected to a page specific to that user,
> after login. Given I am just starting out with Django, if this is
> really advanced, then I'll settle for getting people logged in and
> give them the same page.
>
> Thanks.
>
> --
> 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]<django-users%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
Jurgen Blignaut
Software Engineer with Python
Webtide cc
http://www.webtide.co.za
[email protected]
+27829227239

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

Reply via email to