Re: Want to change template based on full_name(request.user.username)

2015-07-30 Thread sarfaraz ahmed
Thanks, this worked like awesome..!!! On Thu, Jul 30, 2015 at 3:06 AM, Alex Heyden wrote: > {{user}} is implicitly sent in the request, so it might be worth trying to > sort out what specifically went wrong when you say > {{user.is_authenticated}} went wrong. > >

Re: Want to change template based on full_name(request.user.username)

2015-07-29 Thread Alex Heyden
{{user}} is implicitly sent in the request, so it might be worth trying to sort out what specifically went wrong when you say {{user.is_authenticated}} went wrong. Here's a fully functioning example of some things you can do with the user object: {% block header %} Home

Want to change template based on full_name(request.user.username)

2015-07-29 Thread sarfaraz ahmed
Hello All, I am facing an issue in my first django project. I am newbie. So, please help me in detail. I don't want to use {{full_name}} in all the views. I saw few post which says {{user.is_authenticated}} can be used. I tried but it was not working. Passing