Possible Duplicate:
Django: How to access URL regex parameters inside a middleware class?
I am using django in google appengine. Each url in my app has a company code in the format:
http://localhost:8080/[company]/blah/blah
What I want to do is pre process the url and fetch the [company], set appengine datastore namespace to the company code. This can be done by using named url pattern which will pass the company code to each view function as kwargs parameter. This seems too much to just set a namespace at the begining. Moreover I will not need this company param in any of my views.
Is it possible to set the namespace from the url param but avoid passing the company param to each view of my project?