Right way to have a thread in parallel to django project on wsgi.
I'm writing a django project, and I need to have a parallel thread which performs certain tasks.

The project will be deployed in Apache2.2 with mod_wsgi.

Actually my implementation consists on a thread with a _while True - Sleep_ which is called from my __django.wsgi__ file.

Is this implementation correct?

Two problems raises: does django.wsgi get called only once? Will I have just that instance of the thread running? And second, I need to "manually" visit at least a page to have the Thread run. Is there a workaround?

Does anyone has some hints on better solutions?

_Thanks in advance._


Right way to have a thread in parallel to django project on wsgi.
===

I'm writing a django project, and I need to have a parallel thread which performs certain tasks.

The project will be deployed in Apache2.2 with mod_wsgi.

Actually my implementation consists on a thread with a _while True - Sleep_ which is called from my __django.wsgi__ file.

Is this implementation correct?

Two problems raises: does django.wsgi get called only once? Will I have just that instance of the thread running? And second, I need to "manually" visit at least a page to have the Thread run. Is there a workaround?

Does anyone has some hints on better solutions?

_Thanks in advance._

