Re: Retrieve current user id in urls.py

2012-11-28 Thread Peter Edström
Thank you. It's quite logical when you know it. :-) > This isn't something you do in the urlconf. You do that in your view, > where the current user is available already as `request.user`. > -- > DR. > -- You received this message because you are subscribed to the Google Groups "Django

Re: Retrieve current user id in urls.py

2012-11-27 Thread Daniel Roseman
On Tuesday, 27 November 2012 15:37:19 UTC, Peter Edström wrote: > Hello, > > I've set up a user profile according to > thisand > now I'm trying to access the id of the currently logged in user in my

Retrieve current user id in urls.py

2012-11-27 Thread Peter Edström
Hello, I've set up a user profile according to thisand now I'm trying to access the id of the currently logged in user in my urls.py, like this: # urls.py > from django.contrib.auth.decorators