How to implement Django background script execution?

Good time of day.
In Django application you need to run in the background of a couple of modules that have to work 24/24.
For permanent retention of the modules in the background thought to use Supervisord, but starting in this way do not run components of Django. If you use django shell is connecting third-party modules for example
from autobahn.asyncio.wamp import ApplicationSession, ApplicationRunner
get this error NameError: name 'ApplicationRunner' is not defined Although when you call the file directly everything runs fine.
Would like to have from you some ideas on what you all would realize it. Or how to solve problems with connection modules
June 7th 19 at 15:38
1 answer
June 7th 19 at 15:40
Django is synchronous, to use its components in asynchronous code is extremely difficult, almost impossible.

Find more questions by tags PythonDjango