On Sun, 2007-04-29 at 03:47 +0000, Ryan K wrote: > Hi all...quick question. If I have the auth app enabled, is the user > object automatically exposed to templates used with generic views? I > want to display a login link if no one is logged in and a logout link > if a user is.
Providing you have the Authentication and Session middleware modules in your MIDDLEWARE_CLASSES list, you will be able to do this. Details are at http://www.djangoproject.com/documentation/authentication/#authentication-in-web-requests Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---

