Hi,
I do actually have a very similar problem, and I've also checked the
more common errors (settings file,...).
I put in my templates:
{% if user.is_anonymous %}
<p>Welcome, new user. Please log in.</p>
{% else %}
<p>Welcome, {{ user.username }}. Thanks for logging in.</p>
{% endif %
But then, I only can see in my browser:
Welcome, . Thanks for logging in.
Any hint would be greatly apreciated, thanks!
G
On 7/11/06, mamcxyz <[EMAIL PROTECTED]> wrote:
>
> I don't get the USER from context in generic views. I have configured
> the context procesors with django.core.context_processors.request, but
> not work in generic views...Why?
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---