I use django-registration to register users in my application. This part works great. The part that I cannot understand is how to set user session variables when a user logs in. For example, I would like to populate variables containing UserProfile data, as well as the output of several other functions. Then I can use this information in subsequent views / templates.
If someone could point me to a tutorial online or post some sample code, that would be great.
I am using django 1.1 and Python 2.6
django login django-authentication django-registration
doza
source share