10π
I donβt know if this will be suitable for your case, nevertheless here is what I do: I use a task queue (via a django model); when the view is called, it enters a new record in the tasks and redirects happily. Tasks in turn are executed by cron on a regular basis independently from django.
Edit: cron calls the relevant (and custom) django command to execute the task.
5π
First of all β try to using cron for you task, as early say shanyu.
If it doesnβt suit you β then try to use CeleryProject, for task Queue for Django. For working it uses RabbitMQ. And here is a little overview for simple using of basing futures
- Django 1.6 and django-registration: built-in authentication views not picked up
- Django Inner Join Queryset
- Querying Many to many fields in django template
- Python Social Auth Django template example
- Django.db.utils.OperationalError: (1045, "Access denied for user 'root'@'localhost' (using password: YES)")
2π
http://code.google.com/p/django-command-extensions/wiki/JobsScheduling
Is a nice library that that you can use to accomplish this task.