Sounds like you're not getting any user information in your templates. You need 'django.contrib.auth.middleware.AuthenticationMiddleware'
in your MIDDLEWARE_CLASSES
setting, and to get that goodness in context for your templates, you need to do:
from django.shortcuts import render_to_response
from django.template import RequestContext
def my_view(request):
return render_to_response('my_template.html',
my_data_dictionary,
context_instance=RequestContext(request))
To save you doing this everywhere, consider using django-annoying's render_to
decorator instead of render_to_response
.
@render_to('template.html')
def foo(request):
bar = Bar.object.all()
return {'bar': bar}
# equals to
def foo(request):
bar = Bar.object.all()
return render_to_response('template.html',
{'bar': bar},
context_instance=RequestContext(request))