【发布时间】:2019-09-25 16:27:44
【问题描述】:
我在Python 2.7.10/Django 1.8.5 有一个项目,此门户使用创建目录并在此目录中存储图像和视频的功能我将此门户与IIS 7.5 一起使用,但使用此功能时出现此错误:
WindowsError at /somedir/0001/
[Error 5] Acceso denegado: u'D:\\directory\\data\\something\\01'
Request Method: POST
Request URL: http://localhost:8001/somedir/0001/
Django Version: 1.8.5
Exception Type: WindowsError
Exception Value:
[Error 5] Acceso denegado: u'D:\\directory\\data\\something\\01'
Exception Location: C:\Python27\lib\os.py in makedirs, line 157
Python Executable: C:\Python27\python.exe
Python Version: 2.7.10
Python Path:
['.',
'C:\\inetpub\\wwwroot\\miproyect',
'C:\\Windows\\system32\\python27.zip',
'C:\\Python27\\DLLs',
'C:\\Python27\\lib',
'C:\\Python27\\lib\\plat-win',
'C:\\Python27\\lib\\lib-tk',
'C:\\Python27',
'C:\\Python27\\lib\\site-packages']
我尝试将所有权限授予目录上的用户/组 IUSR/IIS_IUSR 和 python.exe,但给出了相同的错误。
提前感谢您的帮助。
【问题讨论】:
标签: django python-2.7 iis-7.5