按DjangoWeb开发应用实践书中的办法部署django项目到IIS时,漏了一步,要在static文件夹下再新建一个web.config,将以下代码粘贴进去:
<configuration>
<system.webServer>
<!-- this configuration overrides the FastCGI handler to let IIS serve the static files -->
<handlers>
<clear/>