Eliminating inter-request race conditions

2021-12-27 Thread Nick Farrell
Hi all. I've been using Django for quite a number of years now, in various ways. Most of the time, I find myself needing to create custom solutions to solve what appears to be a very common problem. During the Christmas downtime, I decided to scratch this itch, and am putting together what wi

Re: CSRF token missing on models with a file/imagefield

2021-12-27 Thread Yorben Verhoest
So, turn out that the problem occurs because for some reason my request.POST data is empty. I found out because I wrote a custom CSRFfailureview where I print out my request data. The reason I get a csrf is missing error is because that token is also stored in there. Now I'm trying to figure