简体   繁体   English

在IIS6上安装Django / Python

[英]Installing Django/Python on IIS6

We are currently installing the latest version of Django and Python on IIS6. 我们目前正在IIS6上安装最新版本的Django和Python。 We have followed the instructions on the following site: 我们已按照以下网站上的说明进行操作:

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

We are receiving a 403 error when trying to access our Django application via the IIS server. 尝试通过IIS服务器访问Django应用程序时,我们收到403错误。 We have verified the python installation on IIS6 and it is working properly. 我们已经验证了IIS6上的python安装,并且可以正常工作。 We have also verified the Django installation. 我们还验证了Django的安装。 Our application runs fine under the built-in Django server, but we are having difficulties getting it to run under IIS. 我们的应用程序在内置Django服务器上可以正常运行,但是我们很难使其在IIS下运行。

We presume we could be getting errors from "Linking Django to PyISAPIe" section of the instructions provided on the link above. 我们假设上面链接中提供的说明的“将Django链接到PyISAPIe”部分可能会出错。

Thanks. 谢谢。

Did you create a separate Application Pool to run PyISAPI (ie not the DefaultAppPool)? 您是否创建了单独的应用程序池来运行PyISAPI(即不是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 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 http://forum.dotnetpanel.com/forums/t/602.aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM