views:

47

answers:

1

Let's say I have a site where all urls are username specific.

For example /username1/points/list is a list of that user's points.

How do I grab the /username1/ portion of the url from all urls and add it as a kwarg for all views?

Alternatively, it would be great to grab the /username1/ portion and append that to the request as request.view_user.

+1  A: 
Peter Rowell
This method works great. However - I am struggling to get the reverse path component back into the url for reversing urls. Any suggestions on that given reverse does not have access to the request object to access that user?
tee