[Twisted-web] Using Twisted with django

Ram Peters rampeters at gmail.com
Mon Mar 12 14:36:10 CST 2007


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 <exarkun at divmod.com> wrote:
> On Mon, 12 Mar 2007 10:06:58 -0400, Ram Peters <rampeters at gmail.com> 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
> Twisted-web at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web
>



More information about the Twisted-web mailing list