twitter bootstrap - Django Collectstatic Suspicious File operation -


i trying run collectstatic on heroku. when got error:

remote: 'component ({})'.format(final_path, base_path))  remote: django.core.exceptions.suspiciousfileoperation: joined path (/tmp/build_4652acfe079723bc273763513a187201/fonts/glyphicons-halflings-regular.eot) located outside of base path component (/tmp/build_4652acfe079723bc273763513a187201/staticfiles)  

i thought perhaps had missed collectstatic on end, ran locally, , got exact same error.

then went looking. found:

/home/malikarumi/projects/aishah/jamf35/staticfiles/bootstrap/fonts/glyphicons-halflings-regular.eot

and

/home/malikarumi/projects/aishah/jamf35/static/bootstrap/fonts/glyphicons-halflings-regular.eot

my settings:

staticfiles_dirs = [ os.path.join(base_dir, 'static/bootstrap/fonts/'),

there ticket out there, seems paths, , see nothing wrong paths, https://code.djangoproject.com/ticket/27201 1 deals files, , might closer issue, because has created tmp files, can't tell: https://code.djangoproject.com/ticket/26644

i should note looked @ django: joined path located outside of base path component, django: how allow suspicious file operation / copy file, , django | joined path located outside of base path component {% static img.thumbnail.url %}, error 400 whitenoise, seem more media root issues.

i'm not sure fix is, here. please advise. thanks.

your staticfiles_dirs setting looks odd. sure don't want this?

staticfiles_dirs = [ os.path.join(base_dir, 'static'),] 

the problem 1 of css files has relative reference resolving outside of static directory, , think that's because have static/bootstrap/fonts should have static.


Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -