Is there any straightforward to convert all incoming urls to lowercase before they get matched against urlpatterns in run_wsgi_app(webapp.WSGIApplication(urlpatterns))?
Is there any straightforward to convert all incoming urls to lowercase before they get
Share
You’d have to wrap the instance of
WSGIApplicationwith your own WSGI app that lowercases the URL in the WSGI environment — but then the environment would just stay modified, which may have other unpleasant effects. Why not just add(?i)to the regex patterns you use inurlpatternsinstead?