Re: technique about using thread in views.py

2012-01-02 Thread Andre Terra
Don't use Thread, use Celery [1] and django-celery[2]. You will also need one of several available brokers, like RabbitMQ[3][6], or kombu[4] + django-kombu[5]. Happy reading! Cheers, AT [1] http://ask.github.com/celery/ [2] http://pypi.python.org/pypi/django-celery/ [3] http://www.rabbitmq.com

Re: technique about using thread in views.py

2012-01-02 Thread kenneth gonsalves
On Mon, 2012-01-02 at 02:37 -0800, Kay wrote: > def welcome(request): > c = {} > c.update(csrf(request)) > return render_to_response("welcome_page.html",c) your code stops here, unless you have something in the welcome page to call this or another view function, you will be stuck on th

technique about using thread in views.py

2012-01-02 Thread Kay
Hi,guys~ Happy new year ^^ I am a beginner at django. I want to run a very simple thread in django project. when view.py after running welcome_page.html to show a html on browser then call a thread print something on background. But I can't run it well with those two merged in views.py. Following i