, 2016 5:43 PM
To: Django users
Subject: Re: user object not available in template
I just upgraded from 1.5 or something where the code worked fine
I'm not sure what has changed in 1.10 but everything is back to normal after I
changed
def homepage(request):
return render_to_res
I just upgraded from 1.5 or something where the code worked fine
I'm not sure what has changed in 1.10 but everything is back to normal
after I changed
def homepage(request):
return render_to_response('xstatic_homepage.html',
RequestContext(request))
to
def homepage(request):
return r
Ah, never mind, misread the question.
Are you sure you're using a RequestContext?
On Fri, Nov 25, 2016 at 3:23 PM, James Bennett
wrote:
> The auth context processor provides it, but not as a variable named
> 'user'; instead it's attached to the 'request' variable, so what you want
> is '{% if r
The auth context processor provides it, but not as a variable named 'user';
instead it's attached to the 'request' variable, so what you want is '{% if
request.user.is_authenticated }}'.
On Fri, Nov 25, 2016 at 3:02 PM, Drew Ferguson wrote:
> Hi
>
> Using Django 1.10
>
> In my templates there is
4 matches
Mail list logo