[Answer]-How can I override part of csrf.py middleware?

1👍

There’s a part in the Django documentation that explains how to create your own middleware. Copy/modify the relevant parts of csrf.py and don’t forget to modify your settings.py MIDDLEWARE_CLASSES accordingly.

Leave a comment