views:

135

answers:

2

We are currently installing the latest version of Django and Python on IIS6. We have followed the instructions on the following site:

http://code.djangoproject.com/wiki/DjangoOnWindowsWithIISAndSQLServer

We are receiving a 403 error when trying to access our Django application via the IIS server. We have verified the python installation on IIS6 and it is working properly. We have also verified the Django installation. Our application runs fine under the built-in Django server, but we are having difficulties getting it to run under IIS.

We presume we could be getting errors from "Linking Django to PyISAPIe" section of the instructions provided on the link above.

Thanks.

A: 

Did you create a separate Application Pool to run PyISAPI (i.e. not the DefaultAppPool)? If so, what user/group does the pool run under? It's possible that you need to assign that user the proper rights. For example, see this page:

http://support.asimo.nl/activekb/questions.php?questionid=6

UPDATE: Here's another link with more detailed steps to check that your user permissions are set correctly:

http://forum.dotnetpanel.com/forums/t/602.aspx

ars
A: 

Hi, I'm also on this project. We actually didn't separate the Application Pool - our website just runs in the default one. Would it be a good idea to separate it?

Alex Kaiser
It depends on how many applications you expect to run on the system and what kind of isolation you want in case of errors, etc. See this page for some info: http://www.developer.com/article.php/2245511
ars
BTW, the reason I asked was that the 403 might be related to a permission problem. The default pool runs under NETWORK SERVICE account, I think. You might want to confirm it, or whatever user your pool is configured with, has the 7 privileges listed in the URL in my previous comment.
ars