user3599803
user3599803

Reputation: 7014

django + IIS fastcgi, some problems

I've successfully managed to setup django + IIS with fastcgi using this guide: https://pypi.python.org/pypi/wfastcgi
I've came across some problems:
1. I can't find a way to see error log - the python traceback, in apache with wsgi the traceback can be found in error.log, how can the same be done with IIS?

  1. I've noticed that once in a while, after the site is "inactive" (no connections for a while), the next first request will be very slow. I've found related questions like this:
    IIS and ISAPI-WSGI = very slow
    But the accepted answer isn't going to be very useful to me, since I need to run it on IIS. /

Upvotes: 1

Views: 2102

Answers (1)

Jan Reilink
Jan Reilink

Reputation: 468

From https://pypi.python.org/pypi/wfastcgi#route-handlers: 1. your WSGI_LOG location needs to be writable by the user your site runs under (the application pool user), so check the file permissions.

2: what's your IIS version? A slow application start-up is normal, but starting from IIS 7.5 you can enable AlwaysRunning as the application pool Start Mode, so the application pool is automatically started after a shut down. Do check your Idl Time-out (minutes) and Idle Time-out Action settings as well.

Upvotes: 1

Related Questions