Global variables might work with runserver (because it starts threads, not
processes, but I'm not certain about that so please correct me), but they're
unlikely to work in production, because typically Django is run as at least two
WSGI processes.
Regards,
Antonis
Antonis Christofides
http://dja
Hi,
Sorry for asking but how exactly you decided that those `global` variables was
not updated?
Regards,
C
> On Jan 23, 2018, at 6:47 AM, Максим Королёв wrote:
>
> Hi there.
> Could someone explain what happens. I had a little project on Python 2.7 and
> decided to move it on 3.6. Everything
I think the primary suggestion would be to not use global variables. Is there
any way you could re-implement the function without using those global
variables? Maybe creating a variable in the settings file for you to use?
If you can’t, is there possibly a problem with the get_wb_pdf_as_zip fun
3 matches
Mail list logo