On Wed, Aug 19, 2009 at 09:39:23PM -0700, John Barham wrote:
>
> On Aug 19, 9:27 pm, Kenneth Gonsalves wrote:
>
> > > Yes, I'd read about RequestContext but from what I understand you have
> > > to pass it explicitly to render_to_response(). Is that the case?
> >
> > yes
>
> Thanks for the
On Aug 19, 9:27 pm, Kenneth Gonsalves wrote:
> > Yes, I'd read about RequestContext but from what I understand you have
> > to pass it explicitly to render_to_response(). Is that the case?
>
> yes
Thanks for the confirmation. In that case I'll have to write my own
render_to_response()
On Thursday 20 Aug 2009 9:52:37 am John Barham wrote:
> > If you use RequestContext(), you automatically get visibility to the
> > current user and their permissions
>
> (Sorry, I meant to say RequestContext instead of RequestInstance.)
>
> Yes, I'd read about RequestContext but from what I
On Aug 19, 5:06 pm, grahamu wrote:
> If you use RequestContext(), you automatically get visibility to the
> current user and their permissions
(Sorry, I meant to say RequestContext instead of RequestInstance.)
Yes, I'd read about RequestContext but from what I
If you use RequestContext(), you automatically get visibility to the
current user and their permissions. See
http://docs.djangoproject.com/en/dev/topics/auth/#authentication-data-in-templates.
My base templates use a block like this:
{% block user %}
{% if
On Thursday 20 Aug 2009 3:57:13 am John Barham wrote:
> I could of course pass in the username as a dictionary value for each
> page, but this quickly becomes tedious. I also use render_to_response
> a lot and if I understand correctly it doesn't pass through the user
> info automatically, but
Apologies in advance if this is a FAQ but I've searched the list and
can't find a precise answer.
I want to display the login status of the user at the top of every
page. If they were logged in, it should say something like "Logged is
as (Log Out)" and if they're not logged in it should show a
7 matches
Mail list logo