In Django there is a settings file that defines the middleware to be run on each request. This middleware setting is global. Is there a way to specify a set of middleware
Use django.core.urlresolvers.resolve() against request.path
in a wrapper for the middleware to try to see if the view is within the app, and skip processing if so.
You can use process_view method, that is called before calling the view func. In process_view you can check — if this view requires this middleware interception.