【发布时间】:2013-07-24 19:15:41
【问题描述】:
我正在尝试将PDF 保存到我的project 中的文件夹中,当我尝试保存PDF 时,folder 具有权限read, write 我收到此错误:
SuspiciousOperation:试图访问 /opt/django_apps/inscripcion/solicitudes/filename
这是我的简单代码:
contenido = "Simple code"
file_name = "/opt/django_apps/inscripcion/solicitudes/filename"
path = default_storage.save(file_name, ContentFile(contenido))
我在RedHat 上使用python2.7 和mod_python 和django1.3
【问题讨论】:
标签: python django mod-python django-storage django-errors