Why isn't it possible to delete sliced querysets?

2023-01-29 Thread M T
Hi all, I was wondering about the technical reasons why deleting sliced querysets is prohibited (the error thrown is Cannot use 'limit' or 'offset' with delete()). This makes it really complex when one wants to delete huge amounts of data (think millions of rows): The only supported options

Re: Server Error 500 Nginx when DEBUG=False

2023-01-29 Thread ALBERT ASHABA AHEEBWA
Thank you Larry! As I mentioned before, this only happens when DEBUG = False. I deployed the same app to pythonanywhere and it worked fine. No errors whatsoever. So I do believe it is has to do with my nginx. My problem with it is that only 2 routes are not working fine. Best Regards,

Re: Server Error 500 Nginx when DEBUG=False

2023-01-29 Thread Larry Martell
On Sun, Jan 29, 2023 at 9:14 AM ALBERT ASHABA AHEEBWA < ashabaaheebwaalb...@gmail.com> wrote: > So I was able to successfully host my first ever Django app on linode. > After the excitement had won off, I started testing the routes, everything > was running fine except for two routes. > > SERVER

Server Error 500 Nginx when DEBUG=False

2023-01-29 Thread ALBERT ASHABA AHEEBWA
So I was able to successfully host my first ever Django app on linode. After the excitement had won off, I started testing the routes, everything was running fine except for two routes. SERVER ERROR (500) These two views are sharing a template and I much doubt that is the cause. Since they are