On 11/21/2010 10:52 AM, jonno wrote:
> I think I'm getting there, and thanks Steve! I've switched my
> directory structure around a bit, but I'm now able to make changes
> with predictable results. Still no image, however, but I can't be too
> far off. I'll return to the context processor thing as soon as I see
> an image. I now have:
>
> STATICFILES_ROOT = '/Users/jonno/django_projects/MCOt/static/'
>
> My template calls:
>
> <img src="{{ STATIC_PREFIX }}imgs/cellohome.jpg" />
>
> 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 say it "seems correct", but if it's a 404 have you actually set
Django or another web server to serve those files?
http://docs.djangoproject.com/en/dev/howto/static-files/
regards
Steve
--
DjangoCon US 2010 September 7-9 http://djangocon.us/
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.