How to embed django into a custom web server

2008-12-12 Thread Jim
Hi, I'm experimenting with building a web server with embedded python and I'd like to setup and include Django. The server works by loading a main python script into memory at startup and then script registers a callback routine to handle incoming messages. The script looks something like this

Re: How to embed django into a custom web server

2008-12-12 Thread Graham Dumpleton
On Dec 13, 12:05 pm, Jim wrote: > Hi, > > I'm experimenting with building a web server with embedded python and > I'd like to setup and include Django.   The server works by loading a > main python script into memory at startup and then script registers a > callback routine to handle incoming m

Re: How to embed django into a custom web server

2008-12-13 Thread Jim
Hi Graham, Thanks for your response. I've taken a quick look over the WSGI spec and it looks good. I have a couple questions though and I apologize if they've already been answered in the forum or in the Django documentation 1) Based on your suggestion to use WSGI, I'm assuming Django a

Re: How to embed django into a custom web server

2008-12-13 Thread Graham Dumpleton
Jim wrote: > Hi Graham, > > Thanks for your response. I've taken a quick look over the WSGI spec > and it looks good. I have a couple questions though and I apologize > if they've already been answered in the forum or in the Django > documentation > > 1) Based on your suggestion to use

Re: How to embed django into a custom web server

2008-12-13 Thread Jim
Thanks for the good info. Let me explain why I would want to develop my own web server... I've got a real time, asynchronous server that uses a proprietary binary protocol to monitor remote systems using a push model, and I'd like to expose the incoming data over HTTP using a web app, also using

Re: How to embed django into a custom web server

2008-12-14 Thread Graham Dumpleton
On Dec 14, 5:29 pm, Jim wrote: > Thanks for the good info.  Let me explain why I would want to develop > my own web server... I've got a real time, asynchronous server that > uses a proprietary binary protocol to monitor remote systems using a > push model, and I'd like to expose the incoming d