Wednesday, November 28, 2012

Re: Retrieve current user id in urls.py

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 users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/lMV1uo6jjzEJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment