Answer the question
In order to leave comments, you need to log in
Why won't Django apps launch?
I wrote a small Django web application and registered it as application (INSTALLED_APPS in settings.py). But I also needed to create two background processes for the service to work: a bank transaction processor (BankWorker) and an email processor (EmailWorker). I have registered both apps in settings.py as well. Each of these workers at startup creates a daemon thread in which some process runs and performs its task. When I run the application via manage.py runserver everything works fine (although each worker is created in duplicate, but judging by StackOverflow it should be so). But when I run the same web application via uWSGI in a Docker container, these workers either don't work or don't start. That is, the web application works,
And I have two questions. uWSGI displays the entire log on the screen by default, can I make my other Django applications also write to this log (otherwise only requests are visible, but I can’t track what happens to background processes)? And why the applications that I registered in INSTALLED_APPS may not work in uWSGI (or maybe they work with an error, but in this case, again, I want to return to the first question)?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question