"SuspiciousOperation" Error While Deleting an Uploaded File

3 views
Skip to first unread message

Ty

unread,
Feb 20, 2009, 2:21:33 PM2/20/09
to Django users
When I login to the administration and try to delete a file I get a
"SuspiciousOperation" error. Here's the traceback:
http://dpaste.com/123112/

Here's my full model:
http://dpaste.com/hold/123110/

Any help would be appreciated.

garagefan

unread,
Feb 20, 2009, 2:26:07 PM2/20/09
to Django users
Apache permissions must be set on the directory. I was having the same
issue before I set the directory group to be Apache and gave it RWX
privileges

Ty

unread,
Feb 20, 2009, 2:28:45 PM2/20/09
to Django users
That's the thing... (and I probably should have mentioned this) I'm
developing on Windows XP using the "manage.py runserver" command to
serve the files.

Ty

unread,
Feb 20, 2009, 3:53:21 PM2/20/09
to Django users
Turns out the problem was the FileField value. It can't start with a
forward slash, it has to be relative.
Reply all
Reply to author
Forward
0 new messages