Some where in the documentation, I read you can do blocking stuff like access to database using twisted.enterprise.adbapi. I don't really see, why, anyone want to use Twisted for other than writing their on communication protocol like BitTorrent.
John On 12/03/07, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote:
On Mon, 12 Mar 2007 10:06:58 -0400, Ram Peters <[EMAIL PROTECTED]> wrote: >I want to handle reporting part of my app with Twisted and rest will >be handled with Django. I have Django setup on mod_python. There is >some mention of "I want a container for my WSGI application" in >TwistedMatrix. Does it mean twisted just handle the request and >forward to some other framework? Does TwistedMatrix support >mod_python? Can I use twisted with django models and django templating >system? > There is some experimental support for using Twisted as a WSGI container. Zope is using it, with some success as far as I am aware. If you use WSGI, however, you lose pretty much all the Twisted request processing features. It is pretty unlikely that Twisted will work inside mod_python, and there wouldn't be any reason to use it there anyway, since you already have an HTTP server. I haven't used Django so I can't say whether or not it will work well in a Twisted server. If it performs blocking operations (for example, to talk to a database), then it probably won't work very well. Jean-Paul _______________________________________________ Twisted-web mailing list [email protected] http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web
_______________________________________________ Twisted-web mailing list [email protected] http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web
