Re: Accessing request.user in urls.py

2006-05-10 Thread Mr. P
Actually I had to solve this yesterday and found that there is an easier and cleaner way based around adding a context processor. The simple option is to add "django.core.context_processors.auth" to TEMPLATE_CONTEXT_PROCESSORS in your settings file. This makes 'user' available in all template con

Re: Accessing request.user in urls.py

2006-05-09 Thread tomass
Great, thanks. --~--~-~--~~~---~--~~ 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]

Re: Accessing request.user in urls.py

2006-05-09 Thread Joseph Kocherhans
On 5/9/06, tomass <[EMAIL PROTECTED]> wrote: > > The subject says it, really. Is there any way to access the > request.user in the urls.py. Nope, and there won't be due to decoupling and all. I'd recommend creating your own view that just wraps the generic view. Something like this: from django.