Re: Strange the global variable behavior

2018-01-23 Thread Antonis Christofides
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

Re: Strange the global variable behavior

2018-01-23 Thread Costja Covtushenko
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

RE: Strange the global variable behavior

2018-01-23 Thread Matthew Pava
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