6 ms·
Thanks for the write-up - interesting read. Out of interest, how do you catch and block all POST requests when the site's in read-only mode without duplicating
by dominicrodger 14y ago
Thanks for the write-up - interesting read.
Out of interest, how do you catch and block all POST requests when the site's in read-only mode without duplicating code? Not sure if you use CBVs at Lanyrd - if so, do you use a common mixin? If not, how?
- simonw 14y agoWe have some common Django middleware used for every dynamic page on the site which deals with that (among other things). We also strip cookies at the Varnish layer.