0

I want to watermark every image a user upload on my Django site. I decided to install a package Django-watermark to handle the operation. After installing and carrying out all the necessary settings, I launched the page to check if it works..after visiting the page, I'm getting the below error. I'm on Windows machine (Windows 7) . I granted the media folder full permission by visiting Properties->Security->Edit, and I clicked on full control for every group and usernames.

I visited the page again, and I'm still getting the same error.

IOError at /ham/5/

[Errno 13] Permission denied: 'C:\\Python27\\Scripts\\nate\\media'

Request Method:     GET
Request URL:    http://127.0.0.1:8000/ham/5/
Django Version:  1.4
Exception Type:  IOError
Exception Value:  

[Errno 13] Permission denied: 'C:\\Python27\\Scripts\\nate\\media'

Exception Location:  C:\Python27\lib\site-packages\PIL\Image.py in open, line 1952
Python Executable:  C:\Python27\python.exe
Python Version:    2.7.3

How can I get rid of this? I'm in development server(Django and Wampserver).

4

1 回答 1

1

我相信您只需要为运行 django 的任何用户授予目录写访问权限。

于 2013-01-08T15:11:46.567 回答