Re: User Environment Variables

2006-09-12 Thread nymbyl
Once you have reference to a user object you should have access to all the fields and methods listed here: http://www.djangoproject.com/documentation/authentication/#api-reference --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: User Environment Variables

2006-09-12 Thread mediumgrade
In, n my views, I could do something like app.user = request.user? Can I get all information for the currently logged in user? nymbyl wrote: > To say "Hello, Person's name!" you can do "Hello, {{ user.username > }}!": >

Re: User Environment Variables

2006-09-12 Thread nymbyl
To say "Hello, Person's name!" you can do "Hello, {{ user.username }}!": http://www.djangoproject.com/documentation/authentication/#authentication-data-in-templates Also, the request object has a 'user' attribute that you can access within views:

User Environment Variables

2006-09-12 Thread mediumgrade
In my application, I have an object which has a foreign key to the django users table. Is there an environment variable that I can use to get information on the currently logged-in user? For example, if I want the main page to display "Hello, Person's Name!" or if I want my objects to have the