(cannon)malikarumi@Tetuoan2:~/Projects/cannon/jamf$ python manage.py findstatic /static/bootstrap/css/bootstrap.css
Traceback (most recent call last):
<snip>
File "/home/malikarumi/Projects/cannon/local/lib/python2.7/site-packages/django/utils/_os.py", line 78, in safe_join
'component ({})'.format(final_path, base_path))
django.core.exceptions.SuspiciousFileOperation: The joined path (/static/bootstrap/css/bootstrap.css) is located outside of the base path component (/home/malikarumi/Projects/cannon/jamf/static)
(cannon)malikarumi@Tetuoan2:~/Projects/cannon/jamf$
STATICFILES_DIRS = [
os.path.join(BASE_DIR, 'static'),
django.core.exceptions.SuspiciousFileOperation: The joined path (/bootstrap/css/bootstrap.css) is located outside of the base path component (/home/malikarumi/Projects/cannon/jamf/static)
File "/home/malikarumi/Projects/cannon/local/lib/python2.7/site-packages/django/core/files/storage.py", line 299, in listdir
for entry in os.listdir(path):
OSError: [Errno 2] No such file or directory: '/home/Projects/cannon/jamf/static/bootstrap'
'/home/Projects/cannon/jamf/static/bootstrap/',
File "/home/malikarumi/Projects/cannon/local/lib/python2.7/site-packages/django/core/files/storage.py", line 299, in listdir
for entry in os.listdir(path):
OSError: [Errno 2] No such file or directory: '/home/Projects/cannon/jamf/static'
I got it back to where runserver comes up and I get no errors, but the staticfiles are still not being served.
The paths are in the right format to satisfy the STATICFILES_DIR in SETTINGS, and so that they can be found, according to debug toolbar, and they pass the checks in runserver, collectstatic, and findstatic, but not so they can be used.
I have to assume that safe_join is still running around somewhere in the background, even though it is now failing silently.
I need to make safe join see these paths the same way it saw the single file bootstrap.css when it passed findstatic, but I don't know how to do that.
One could ask why I get all those 404's from runserver, but I think that's explained by the fact that safe_join is still blocking them.
--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/MoWUYN4SJmk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/20160712100323.GK22177%40koniiiik.org.
For more options, visit https://groups.google.com/d/optout.
"Every time you see a black kid wearing a hoodie, you say: There's a thug. If you see a white kid wearing hoodie, you say: There's Mark Zuckerberg," Jones told USA TODAY last year.
"I said, 'That's because of racism. And Prince said, 'Maybe so, or maybe you civil rights guys haven't created enough Mark Zuckerbergs.' "