Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

Thanks

share|improve this question
add comment

2 Answers

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.

share|improve this answer
add comment

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...

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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