On 21/06/2009, at 11:14 PM, Vlad(L) wrote:
>
> MEDIA_ROOT = 'C:/booksite/media/'
> MEDIA_URL = 'http://127.0.0.1:8000/media'
>
> ...
> <p><img src="{{art.image}}" alt= "" width="200" height="100" ></p>
>
I think this line should be more along the lines of:
<p><img src="{{MEDIA_URL}}{{art.image}}" alt= "" width="200"
height="100" ></p>
When you render the html, view the source, and make sure its rendering
the right path.
Access the image directly through the browser to make sure you have
the path correct.
Hope that helps,
Pawel.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---