Hi Julien,

Thanks for that  but the auth processor is in place in settings, along
with the debug and il8n processor obviously.

Allan

On Jul 1, 10:29 am, Julien <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Have you tried adding the auth context processor in your settings?
> "django.core.context_processors.auth"
>
> Alfonso wrote:
> > Hey,
>
> > I've implemented a user login widget on my site.  A simple 'Sign in'
> > at top of every page that turns into 'Welcome John, View your profile'
> > following successful user authentication.  Works great - only issue
> > I'm having is that on home page the text reverts to  'Sign In' even
> > when user is logged in, only happens on this page.  Not sure why this
> > is occurring.  Code below is sited in base.html.
>
> > <div id="login">
> >                                    {% if user.is_authenticated %}
> >                                            Welcome, {{ user.username }}. <a 
> > href="/accounts/logout/">Log
> > Out</a> | <a href="/accounts/profile/{{ user.username|
> > slugify }}/">Your Profile</a> | <a href="/blog/">Blog</a> | <a href="/
> > promotions/">Promotions</a>
> >                                    {% else %}
> >                                            <a href="/accounts/login/">Log 
> > in</a> | <a href="/blog/">Blog</
> > a> | <a href="/promotions/">Promotions</a>
> >                                    {% endif %}
>
> >                            </div>
>
> > Thanks in advance
>
> > Allan
--~--~---------~--~----~------------~-------~--~----~
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