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.
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.
 
    
     
    
    http://code.google.com/p/django-cron/
This is a plugin, which will allow you to put some tasks for independent execution.
Also this question contains good solution for this question: Django - Set Up A Scheduled Job?
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: ... sleep loop.
In any case, you should set DEBUG to false, otherwise Django will eat up your memory.
 
    
    Django is not especially for this; that said, you can use django's facilities, and just write a programme that executes continuously.
 
    
    Write a management command and daemonize it with supervisord.
By the way, technically django itself is running continuously and not only when view is called.
What are you trying to acheive?
