You have to enable auth middleware and application in settings.py -
http://djangobook.com/en/1.0/chapter12/
Then you can use user specific variables in your templates -
{{ user.username }}, {{ user.is_staff }} and so on

On 22 июн, 14:43, mcordes <[EMAIL PROTECTED]> wrote:
> Hello,
>
> Is there anything I need to do to enable the auth context processor
> other than adding "django.core.context_processors.auth" to
> TEMPLATE_CONTEXT_PROCESSORS in my settings.py?
>
> I'd like to be able to access the 'auth user' object in my various
> templates, which from what I understand this processor is supposed to
> be injecting it, but it doesn't seem to be working.
>
> my settings.py file contains:
>
> TEMPLATE_CONTEXT_PROCESSORS = (
>     "django.core.context_processors.auth",
> )
>
> and in my template I'm using:
>
> {{user}}
>
> Is there anything else I need to get this to work?  Any suggestions?
>
> -Matt
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to