Do you want to show the user all your content without authentication? Why not just use @login_required decorator to have then login when needed? Below are the commands you need.
from django.contrib.auth.decorators import login_required @login_required def myfunction(request): # do stuff Vincent On 6/28/07 4:51 PM, "Kirk Strauser" <[EMAIL PROTECTED]> wrote: > > Is there a list of variables that all templates can access? I'm > asking out of general interest, but the problem I'm trying to solve is > that I want to have a "login" or "logout" link on every page of the > site, depending on whether a visitor is currently authenticated, and I > don't want to have to pass in { 'username': request.user.username } in > every single view. Is there a django-ish way to do this? > > > > -- Vincent R. Nijs Assistant Professor of Marketing Kellogg School of Management, Northwestern University 2001 Sheridan Road, Evanston, IL 60208-2001 Phone: +1-847-491-4574 Fax: +1-847-491-2498 E-mail: [EMAIL PROTECTED] Skype: vincentnijs --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---