ad777 wrote:
> Hi there,
> 
> I am new at django and I was wondering what is the best way of
> redirecting users to their own customized page after they get
> authenticated.  I have extended the user model to include a unique
> user id for each user... is it somehow possible to use this?

The user model already had a unique user id!  It sounds like you should 
read through the django documentation 
http://www.djangoproject.com/documentation/ and / or django book 
http://www.djangobook.com/


There are probably several ways depending on what you want to do exactly.


Redirecting users:

The standard way to redirect is to return an HttpResponseRedirect from a 
view.  But the authentication system has a few alternatives see 
http://www.djangoproject.com/documentation/authentication/#authentication-in-web-requests
 
and look for the "next" parameter.


User Customized pages:

The request instance that each view receives has a request.user 
attribute which is the current user (could be anonymous) see 
http://www.djangoproject.com/documentation/authentication/#users

This can be used to customize the view for the user in whatever way you 
desire.


-- 
Norman J. Harman Jr.
Senior Web Specialist, Austin American-Statesman
___________________________________________________________________________
It's August!  Keep your cool with the Statesman.  Check out our hot
deals in print and online for back-to-school savings and more!

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

Reply via email to