Re: Django, CherryPy and threading

2007-08-30 Thread Eratothene
I am running CherryPy 3.0.1 with django + nginx for static content on my production server for several months without any issues. It also shows very well perfomance, even better than apache/mod_python and very small memory usage. Ideal solution! On Aug 28, 6:39 pm, Justin Johnson <[EMAIL

Re: Django, CherryPy and threading

2007-08-29 Thread Justin Johnson
Okay, maybe my text should have read "I've deployed Django with Apache and ModPython where each request *may* be serviced by a separate process." Concurrent requests being handled within the same interpreter was my concern with Django. After a quick look at the source code it seems that

Re: Django, CherryPy and threading

2007-08-28 Thread Graham Dumpleton
On Aug 29, 11:51 am, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote: > On 8/28/07, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > ... > > > Most importantly, you should rigorously test your application to > > ensure that it is truly safe to use in a multithreaded web server. > > Areas which I would

Re: Django, CherryPy and threading

2007-08-28 Thread Jeremy Dunck
On 8/28/07, Graham Dumpleton <[EMAIL PROTECTED]> wrote: ... > Most importantly, you should rigorously test your application to > ensure that it is truly safe to use in a multithreaded web server. > Areas which I would suggest you look at closely are use of session > objects as these from memory

Re: Django, CherryPy and threading

2007-08-28 Thread Graham Dumpleton
On Aug 29, 1:39 am, Justin Johnson <[EMAIL PROTECTED]> wrote: > I've managed to get Django working nicely with CherryPy using WSGI. > Previously I've deployed Django with Apache and ModPython where each > requested is serviced by a separate Python instance. How you think mod_python works is

Re: Django, CherryPy and threading

2007-08-28 Thread Joseph Heck
You get to decide the version of "safe" - i've done something similiar with a little REST queuing app and run it up to fairly significant loads without issue. -joe On 8/28/07, Justin Johnson <[EMAIL PROTECTED]> wrote: > > > I've managed to get Django working nicely with CherryPy using WSGI. >

Django, CherryPy and threading

2007-08-28 Thread Justin Johnson
I've managed to get Django working nicely with CherryPy using WSGI. Previously I've deployed Django with Apache and ModPython where each requested is serviced by a separate Python instance. This isn't the case with CherryPy though as it's thread based which leads me to the following