CSRF token missing on models with a file/imagefield

2021-12-20 Thread Yorben Verhoest
I have a project which is set up on AWS using lambda, s3, ... Because it is still in production we are using DjangoAdmin to manage the data in it. All of my models work fine when I try to save them except the ones that have a filefield or imagefield in them. When I save those, I get a 403 -

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

2021-12-27 Thread Yorben Verhoest
out why my POST data is empty only on models where an filefield or imagefield is defined... On Tuesday, 21 December 2021 at 07:59:31 UTC+1 Yorben Verhoest wrote: > Yes, I'm just using the DjangAdmin interface > > It works perfectly for models without any filefield / imagefield > Fir

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

2021-12-28 Thread Yorben Verhoest
:35:42 UTC+1 sebasti...@gmail.com wrote: > Hello, > > try > > > > in your html template- I think this works... > > Regards > > Am Di., 28. Dez. 2021 um 08:26 Uhr schrieb Yorben Verhoest < > yorben@gmail.com>: > >> So, turn out that the pr

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

2021-12-20 Thread Yorben Verhoest
...@gmail.com wrote: > So you are adding these images using the standard DjangoAdmin interface? > > On Monday, 20 December 2021 at 14:13:23 UTC Yorben Verhoest wrote: > >> I have a project which is set up on AWS using lambda, s3, ... >> >> Because it is still in produ

Re: Not sure if I am doing django-paypal correctly

2021-12-29 Thread Yorben Verhoest
Hello I'm a Django Noobie and maybe I'm completely wrong about this but in my app named "core", I have a file called apps.py where I register my signals. I just followed a tutorial as well so I can't yet explain what it does but if I had to guess is just to register the app with my signals.