I am creating a web application in django and I want to create a backend app which runs continuously instead of running only when the “view” is called. How do I do this ?
Any help would be appreciated.
Thank you.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Have a look at Celery. It is a task queue that tightly integrates with Django.
You can also create a custom management command that contains a
while True: ... sleeploop.In any case, you should set
DEBUGto false, otherwise Django will eat up your memory.