Hi Adrian. I think the first part of this is to get the server to spin off its thread with a cgi to start and stop. This can then be wrapped with win32service to make this a windows service as with similar code I put up the other day. I noticed that Django is already using the cherrypy autoreloader. Modifying _cpserver from cherrypy for Django can provide the initial thread.

Another thought is to not duplicate efforts and but use the cherrypy wsgi server as the development webserver. This has all the functionality for django as is and is being actively maintained and developed where the wsgiref server that is being used now is not. Further it can it would provide a reliable service for development since it is in fact a deployable server as it stands.

I have experimented with this in a basic way yesterday since _cpwsgiserver was specifically written to be adaptable for other projects. In fact, cherrypy developed their own wrapper for it to ensure that the core wsgiserver could be used in other projects.

I think this solution is the best. I did not have a problem starting the service with the wsgiserver but was getting a traceback on urls. Is there someone that could help me sort this since the issue is with the app being passed to the wsgiserver since it generates a traceback in the common middleware as a result. In any case I think this is viable. I would appreciate some feedback on this or who might be best to perhaps help me get the request from the middleware all the way through to the server without trouble.

Further, if cherrypy wsgiserver is used, the cgi for windows service has already been written and get Django a bit futher along for some sort of packaging as been suggested for Windows.

Regards,
David

Adrian Holovaty wrote:
On 12/19/05, Dody Suria Wijaya <[EMAIL PROTECTED]> wrote:

I agree. Part of the reason Plone was really popular because it's so
easy to install, and behave like normal Windows software. This means
daemon-like software always present as Windows Service, and get
started/stopped via familiar interface. Django so far has not as easy as
it could be. Packaging all-in-one (Python + eveything needed) with
installation script + shortcuts on Start-Program with nice icons,
traybar monitor utility ala Apache, and .CHM document would be awesome.


Would any Windows experts like to take on this project?

Adrian

--
Adrian Holovaty
holovaty.com | djangoproject.com | chicagocrime.org

Reply via email to