Re:How Lanyrd moved from AWS to SoftLayer and MySQL to Postg...
by dominicrodger on Tuesday November 13, 2012 @10:43AM
(#4778532)
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?
Re:How Lanyrd moved from AWS to SoftLayer and MySQL to Postg...
by simonw on Tuesday November 13, 2012 @10:47AM
(#4778562)
We 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.
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?