[Twisted-Python] Twisted protocol as Django data source

Jean-Paul Calderone exarkun at divmod.com
Wed May 27 13:40:03 MDT 2009


On Wed, 27 May 2009 14:39:45 -0400, Dan <charnedn at muohio.edu> wrote:
>Hi all,
>
>I have an application written in Twisted which multiplexes data from a
>variety of pieces of specialized hardware, and I'd like to make the
>live stream of this information viewable through a webpage.
>Unfortunately, on our server, port 80 is already taken by an Apache +
>mod_python + Django stack with which we host a number of webpages.
>
> [snip]
>
>The options I've thought of include using Twisted's builtin web server
>a nonstandard port, mod_proxy, or writing a Django app which just
>polls a database repeatedly and altering my Twisted app so it
>repeatedly does an UPDATE. All of these solutions feel hacky to me, so
>I'd like to ask you, the list, how you'd go about doing this.

Another option is to have Django talk to a Twisted process via some RPC
mechanism that won't require you to use Twisted in the Apache process.
For example, XML-RPC.

Jean-Paul




More information about the Twisted-Python mailing list