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
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
> }}!":
>
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:
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
4 matches
Mail list logo