Re: QuerySet performance on large datasets

2021-02-12 Thread Peter of the Norse
bool(qs) is recommended when the queryset has already been run. If you do something like val = qs.earliest(some_property) if bool(qs) else None then there isn’t a performance gain because it still has to run qs.exists() to even see if there is a value. Later things like that will be

Re: IS it possible to debug Django with Apache and mod_wsgi

2021-02-12 Thread Ognjen Bjelica
Hi Rob, Thanks for the quick reply, but I was looking for a way to run code line by line. Because DEBUG=True is useful only in some situations. On Fri, Feb 12, 2021, 17:19 Rob Wilkinson wrote: > Sorry meant DEBUG=True :) > > On Fri, Feb 12, 2021 at 10:39 AM Rob Wilkinson > wrote: > >> >>

Re: IS it possible to debug Django with Apache and mod_wsgi

2021-02-12 Thread Rob Wilkinson
DEBUG=Yes in settings.py shows what you need even in Apache Don’t run like that in prod! On Fri, Feb 12, 2021 at 10:36 AM Ognjen B. wrote: > Hi everyone, > I was wondering can anyone point me to a document describing how to setup > debugging using any IDE (VS Code, PyCharm, etc) or at least

Re: IS it possible to debug Django with Apache and mod_wsgi

2021-02-12 Thread Rob Wilkinson
Sorry meant DEBUG=True :) On Fri, Feb 12, 2021 at 10:39 AM Rob Wilkinson wrote: > > DEBUG=Yes in settings.py shows what you need even in Apache > > Don’t run like that in prod! > > > On Fri, Feb 12, 2021 at 10:36 AM Ognjen B. > wrote: > >> Hi everyone, >> I was wondering can anyone point me

IS it possible to debug Django with Apache and mod_wsgi

2021-02-12 Thread Ognjen B.
Hi everyone, I was wondering can anyone point me to a document describing how to setup debugging using any IDE (VS Code, PyCharm, etc) or at least from console when using Django with Apache and mod_wsgi? Or if it's not possible please let me know so I don't waste any more time. Thanks -- You

Re: Payments

2021-02-12 Thread o1bigtenor
On Thu, Feb 11, 2021 at 10:59 PM MUGOYA DIHFAHSIH wrote: > > idealy i want to use visa, ineed help on how to integrate it into the payment > module. Thanks... but MPESA is from mobile phone to another phone > transaction(mobile money). > Makes sense - - - - likely a very regional

Re: Upload images

2021-02-12 Thread Kasper Laudrup
On 12/02/2021 05.12, mtp...@gmail.com wrote: How do I check if the files are valid images or not before creating the organization object. When asking someone for help, at least have the courtesy to reply the suggestions you're given before asking an unrelated question. This will greatly