H
H
howuu2019-06-07 12:50:05
linux
howuu, 2019-06-07 12:50:05

Django manage.py + demon?

Hello, I have a Django project and an external python script, I want that when the Django server is started, this script would also be included and work constantly while the Django server is running?, so that the __name__= condition would work in it ='__main__', how to do it correctly? Now I use the Django debug server, but I will need to transfer all this to PythonAnywhere, and then to the server under NGINX, GUNICORN, POSTGRESQL

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Kitaev, 2019-06-07
@deliro

django management command + any supervisor (docker/supervisord/systemd)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question