John M wrote:
>  I'm not passing anything into my
> templatles except ... whatever the Render_to_Response
> does.  ...

You need to pass a RequestContext as the 2nd argument to
render_to_response.  See:

http://www.djangoproject.com/documentation/templates_python/

(Search for RequestContext, it's down a little ways.)  You pass in the
request object when you create the RequestContext, and the auth
processor takes care of populating the template context with the "user"
variable.  Then your check for user.is_authenticated should work.

> >And you've got > django.core.context_processors.auth in your 
> >TEMPLATE_CONTEXT_PROCESSORS setting?
>
> Hmm, don't see that in my settings file, what would I look for?  I see
> it's supposed to be default in the file, but don't see it in mine.
>

If you have no TEMPLATE_CONTEXT_PROCESSORS setting in your settings.py,
then that's probably fine, since the auth processor is part of the
default setting.

> I'm running 0.95 build from the download, not SVN

I use SVN but the doc I'm looking at says .95 and up, so that should be
fine.

Hope this helps,
Karen


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

Reply via email to