Hello,

I am having issues acquiring the user context from templates other
than the template I specify with the following in my urls.py

(r'^login/$', 'django.contrib.auth.views.login', {'template_name':
'foods/login.html'}),

I use the following in my base.html to display the username once a
user is logged in.

{% if user.is_authenticated %}
           <li> {{ user.username }}</li>
{% else %}
            <li><a href="http://tommygunz.com/login/";>log in </a></li>
{% endif %}

This worls in foods/login.html but no where else.

I have this specificed in my settings.py
LOGIN_REDIRECT_URL = "/"

# just for good measure.
TEMPLATE_CONTEXT_PROCESSORS = (
'django.core.context_processors.auth',
'django.core.context_processors.debug',
'django.core.context_processors.i18n',
'django.core.context_processors.media',)


am I missing something here?
any help is appreciated!

--~--~---------~--~----~------------~-------~--~----~
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