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.
Source:stackexchange.com
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.