If you're using generic views your templates should already have the
`user` object in their context. You should be able to just use
{{ user }} to get the current user's username.
- whiteinge
On Jun 4, 8:51 am, konryd <[EMAIL PROTECTED]> wrote:
> Is it possible to send username to the template
Is it possible to send username to the template using generic views?
My site needs to display "hello " but otherwise isn't more
complicated than just trivial object_list.
I read about serving a callable object to generic view in
extra_content, but I'm not sure whether I can get request object
2 matches
Mail list logo