I would like to create a thread (maybe in the future a process) that inherits all the django env and settings but goes off to do its own monitoring. Ideally I would like this to be triggered when the Django server is done initializing. I've tried both methods below. The first one seems to run the Middleware initializer every time a request is made and both of them have the problem that my startup code only gets triggered when the first request to the server is made.
Where to put Django startup code?
Running startup code right after Django settings? (also for commands)
I've also seen that someone checked in some signal for this exact use case but it will only be available in django 1.6 or later.
Any ideas how to work around this?
Thanks!