of the path is where my files are, in fact, if localhost:8000
appends my settings.py line:
STATICFILES_ROOT = '/Users/jonno/django_projects/static'
And I have:
{% load staticfiles %}
{% get_staticfiles_prefix as STATIC_PREFIX %}
at the top of my template. Sorry to trouble all with t
see
an image. I now have:
STATICFILES_ROOT = '/Users/jonno/django_projects/MCOt/static/'
My template calls:
and Chrome reports:
Request URL:http://localhost:8000/static/imgs/cellohome.jpg
This seems correct, but it's still a 404. Thanks again -- Jon.
--
You received this message
Thanks again, Steve. You know, I think that must be my problem, since
I have yet to have a static file served to me. I thought runserver
did this by default in development, but I wonder if I'm mixing up
development and production settings somewhere. DEBUG is set to true,
and the documentation do
Slight update: I ran the command:
python manage.py findstatic /imgs/cellohome.jpg
and received a message that ended with:
django.core.exceptions.SuspiciousOperation: Attempted access to '/imgs/
cellohome.jpg' denied.
I think that command applies only to a production environment, though,
so I d
4 matches
Mail list logo