i've write a middware like this:
class LogMiddleware( object ):
def process_request( self, request ):
logging.debug("start")
def process_response( self, request, response ):
logging.debug("end")
return response
and i put it in the bottom of MIDDLEWARE_CLASSES
most time it works fine.
and when i test with url /admin without an trailing "/" and i could only see the "end" logged, why?