Middleware-Wizards,
I was wondering if there is a more elegant way to find out whether a request serves one of my custom view methods or rather static content etc. instead?
class MyMiddleware(object):
def process_view(self, request, view_func, view_args, view_kwargs):
if view_func.__name__ != 'serve':
# do something here
return None