I have setup Django to run on a windows 2003 server following the steps on the django wiki. Everything works fine and there are no errors. Only one instance of Django is setup on the server at the moment. However whenever the first page is requested it takes about 10 seconds to load the page. After this every page loads instantly.

All my searches about speed issues with Django on windows refer to the local server, but not when using IIS and PyISAPIe.



If you try a simple Python script running under PyISAPIe such as

from Http import *
def Request():
    Header("Content-type: text/html")
    Write("Hello, World!")

Does it take 10 seconds? This way you can try and eliminate (or narrow to) PyISAPIe / Python as the cause.


Does it do the same thing with the Django bundled server ?

Does you have any caching enabled ? Perhaps it's trying to cache the page at the fist request but something block it...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.