I have a django based web site. The current url is something like http://www.mysite.com/catalog/xxx. Now I want to customize the store based on customer location, so the url will look someting like http://www.mysite.com/chicago/catalog/xxx. I can use urlpatterns = patterns('', (r'^(?P<city>\w+)/', include('store.urls')), ) to parse the city string and send it to the view function. However, the problem is that I have to modify all the current view functions to handle the new <city> argument. Is there a way to customize the view/ template without rewriting all the view functions again?
Thanks, Steven -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.