picomon
picomon

Reputation: 1519

IOError Django Permission Denied

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).

Upvotes: 0

Views: 1233

Answers (1)

dm03514
dm03514

Reputation: 55972

I believe you just need to give the directory write access for whichever user django is running under.

Upvotes: 1

Related Questions