views:

192

answers:

3

I'd like to serve django application on windows XP/Vista. The application is an at hoc web interface to a windows program so it won't be put under heavy load (around 100 requests per second).

Do you know any small servers that can be easily deployed on windows to serve a django app? (IIS is not an option as the app should work on all versions of windows)

A: 

Why not Apache ?

Nokia have developed a scaled down version of apache to run on their mobile phones. It supports python.

http://research.nokia.com/research/projects/mobile-web-server/

Also do you need anything else such as database support etc?

steve
I though that Apache is a bit to heavy but i will check that link out. Thank you. Regarding the db support i will use sqlight.
Piotr Czapla
Please bear in mind this web server will run off a mobile phone. It's designed not to be heavy.
steve
I just love the fact that I can run Apache on my phone at all. It's awesome!
Tom Savage
+4  A: 

cherrypy includes a good server. Here's how you set it up to work with django and some benchmarks.

twisted.web has wsgi support and that could be used to run your django application. Here's how you do it.

In fact any wsgi server will do. Here's one more example, this time using spawning:

$ spawn --factory=spawning.django_factory.config_factory mysite.settings

And for using paste, the info is gathered here.

Of course, you could use apache with mod_wsgi. It would be just another wsgi server. Here are the setup instructions.

nosklo
+1  A: 

If you want to give Apache a go, check out XAMPP to see if it'll work for you. You can do a lightweight (read: no installation) "installation." Of course, you'll also want to install mod_python to run Django. This post may help you set everything up. (Note: I have not used python/Django with XAMPP myself.)

Edit: Before someone points this out, XAMPP is not generally a production-ready tool. It's simply a useful way to see whether Apache will work for you. Also, I saw that you're using SQLite after the fact.

spiffyman