First time here? Check out the FAQ!

Revision history  [back]

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

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

/home/joey/custom/my_skin/
...media/
......... images jquery-openid js style
...templates/

Following are the changes done to settings.py

ASKBOT_EXTRA_SKINS_DIR = '/home/joey/custom/'
STATICFILES_DIRS = ((os.path.join(ASKBOT_ROOT, 'skins'), ASKBOT_EXTRA_SKINS_DIR),)

When I run python manage.py 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

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

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

/home/joey/custom/my_skin/
...media/
......... images jquery-openid js style
...templates/

Following are the changes done to settings.py

ASKBOT_EXTRA_SKINS_DIR = '/home/joey/custom/'
STATICFILES_DIRS = ((os.path.join(ASKBOT_ROOT, 'skins'), ASKBOT_EXTRA_SKINS_DIR),)

When I run python manage.py 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

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

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

/home/joey/custom/my_skin/
...media/
......... images jquery-openid js style
...templates/

Following are the changes done to settings.py

ASKBOT_EXTRA_SKINS_DIR = '/home/joey/custom/'
'/home/joey/ic_skins/'
STATICFILES_DIRS = ((os.path.join(ASKBOT_ROOT, 'skins'), ASKBOT_EXTRA_SKINS_DIR),)

When I run python manage.py 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