On Friday 29 June 2007, Derek Hoy wrote:
> How are you producing your index page?  If you look in the docs,
> you'll see the warning about needing a RequestContext- if that's not
> being used in the view that is loading the index.html into a response
> then the template won't have any user info even if you are logged in..

Ahh, gotcha.  I changed my index view to:

def index(request):
    return render_to_response('index.html', 
context_instance=RequestContext(request))

My only concern is that it would seem that I'll need to manually build and
pass in a RequestContext for every single view, since I want to have a login
or logout link at the top of each one.  Is that correct?
-- 
Kirk Strauser

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to