I\'ve been working with Django for a while now (currently on version 1.2), but just recently started working on an app that needs to support multiple instances. E.g., the p
If you're not too tied to namespaces, you could instead write your urls.py to be like:
urlpatterns = patterns('',
(r'^(P/)', 'controllers.route_me'),
)
This will make a call to the controllers.route_me function and pass it the request, plus the string 'instance', which you could handle this way:
# (in controllers.py)
def route_me(request, instance):
# you now have complete control, and do what you need to do with the 'instance' and 'request' vars
pass