Re: Watchdog & Django

2021-05-23 Thread tlockhart1976
The app has a ready method which is called after the initialization is complete. You might be able to do your setup there... - Tom > On May 23, 2021, at 9:22 AM, Benjamin Schollnick > wrote: > > Okay, this was a bit more complex, and a bit simpler than I thought. > > 1) The Django app __ini

Re: Watchdog & Django

2021-05-23 Thread Benjamin Schollnick
Okay, this was a bit more complex, and a bit simpler than I thought. 1) The Django app __init__ is the only place you can place the signal to stop the watchdog function. 2) You can’t perform any app model specific work in the __init__ because the app’s model frame work wasn’t yet finished ini

Watchdog & Django

2021-05-20 Thread Benjamin Schollnick
Folks, I’m working on revamping the Gallery/viewer application that I wrote in Django. One issue I’ve had is that it’s a dynamic on the fly thumbnail creator, but I’ve used a homebrew (fairly successfully) cached system to keep track of the directories & file contents. Unlike many of the other