Hi,

 

What is the recommended way of running Django on a Windows server?

 

I’ve developed a small web-application with Django, for home-use only, and I want to run it on one of my PC’s – which runs Windows.

 

So yesterday I did the first test with Django, Apache, mod_python and my application – and it crashes, very frequently. Therefore I’m wondering, is there perhaps a better way to run a Django application on windows?

 

Software versions:

 

-          Windows XP, SP2

-          Apache 2.0.55

-          mod_python 3.2.7

-          Python 2.4.2

-          (SVN 1.3.0)

-          PIL 1.1.5

-          PostgreSQL 8.1.3

-          PsycoPG 1.1.21

 

 

The application is a photo-album like application which stores directory and image info in a psql database, and creates thumbnails using PIL. The way it works now, it is doing a lot of redirects (from a django view to static content – either image, or thumbnail). Retrieving 1 page therefore means doing a lot of requests to the Django-view for the thumbnails; each request then determines which thumbnail to load (or creates it) and redirects to the appropriate thumbnail-url.

 

The front-page has 38 images, which means 39 requests to a Django view and database-access in each of them, and it crashes the Apache server multiple times just to display that page.

 

I *sometimes* see in the server logs some things relating to database-rollback, but not every time it crashes. I think actually that the rollbacks are happening during recovery after a crash and are not cause of a crash.

I do not see any other dumps or tracebacks in the server that could give me a clue what is wrong.

 

 

Does anyone else have similar stability problems with a similar stack of software? Should I replace mod_python with a (fast)cgi-based solution, somehow? Any upgrades recommended?

 

Or is the only realistic recommendation to head over to the mod_python lists?

 

 

Cheers,

 

--Tim

 

 

 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to