Piotr Czapla
Piotr Czapla

Reputation: 26532

A production ready server to serve django on win32

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)

Upvotes: 3

Views: 757

Answers (3)

spiffyman
spiffyman

Reputation: 614

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.

Upvotes: 1

nosklo
nosklo

Reputation: 222842

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.

Upvotes: 5

Steve
Steve

Reputation: 21499

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?

Upvotes: 0

Related Questions