Created
June 7, 2016 06:06
-
-
Save BlackPie/b81220f0d06e6698e36d6b38959c9684 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# dont work | |
class StatsMiddleware(object): | |
def process_view(self, request, view_func, view_args, view_kwargs): | |
raise Exception | |
# works fine | |
class StatsMiddleware(object): | |
def process_request(self, *args, **kwargs) | |
raise Exception |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment