Ask Your Question

SuspiciousOperation: Attempted access to ... error when trying collectstatic

asked 2013-12-12 14:59:54 -0500

Joey gravatar image

updated 2013-12-12 15:28:18 -0500

I am adding a new skin in my home directory. For simplicity, I copied media and template files from askbot source code to check if am able to plugin a new skin.

So my skin dir looks like this

......... images jquery-openid js style

Following are the changes done to

ASKBOT_EXTRA_SKINS_DIR = '/home/joey/custom/'

When I run python collectstatic I am seeing:

SuspiciousOperation: Attempted access to '/home/joey/mysite/askbot/skins/my_skin/media/js/output-words.html' denied.

If I delete that file, I am seeing

SuspiciousOperation: Attempted access to '/home/joey/mysite/askbot/skins/my_skin/media/bootstrap/css/bootstrap.min.css' denied.

I am able to runserver but without css. It's only html..kindly help

File permissions:

drwxrwxrwx 5 joey joey 4096 Dec 10 08:38 js
drwxrwxrwx 3 joey joey 4096 Dec 10 08:38 jquery-openid
drwxrwxrwx 5 joey joey 4096 Dec 10 08:38 images
drwxrwxrwx 3 joey joey 4096 Dec 10 08:38 style
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-12-12 15:10:09 -0500

Evgeny gravatar image

Have a look at the file and directory access permissions to those files, including any directories along the path leading to those files.

I don't know where that specific error comes from, maybe it is system dependent, but it appears to be simply a file access error.

edit flag offensive delete link more


Hi, It is python error: Have a look at this "".. I checked the file permissions and they are all ok.

Joey gravatar imageJoey ( 2013-12-12 15:15:07 -0500 )edit

I have updated the question to include file permissions as well

Joey gravatar imageJoey ( 2013-12-12 15:30:44 -0500 )edit

Does the file '/home/joey/mysite/askbot/skins/my_skin/media/bootstrap/css/bootstrap.min.css' actually exist?

Evgeny gravatar imageEvgeny ( 2013-12-12 15:32:58 -0500 )edit

Oh and the file doesn't exists as well.. i.e it is not in /home/joeyl/my_site/askbot/skins/my_skin/media/js/output-words.html, it is in /home/joey/custom/my_skin/media/js

Joey gravatar imageJoey ( 2013-12-12 15:34:19 -0500 )edit

The link that you've inserted should be helpful - try debugging just after the `except ValueError` statement - you will then see what the underlying exception is.

Evgeny gravatar imageEvgeny ( 2013-12-12 15:43:09 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2013-12-12 14:59:54 -0500

Seen: 1,006 times

Last updated: Dec 12 '13