pako wrote:
> It is possible to run view method in new thread?
> For example if i have
> 
> (r'^items/(?P<category>\d)/$', 'cyber.core.views.list_items')
> 
> and function list_items do sleep(10) a new requests to django
> application will not be acceptable, cause main thread is currently
> sleeping by list_items function.
> So any ideas?
> 
> (sorry for poor english)
> 

hi,

what you describe is usually solved in a different way.


simply the webserver that is calling the django-views will already be 
doing it from multiple processes or threads (depends on your webserver + 
configuration), so it does not have to be handled on the django-level.

gabor

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to