On Monday 22 June 2009 09:14:41 am Vlad(L) wrote: > art.html > > {% for art in art %} > <h1>{{ art.title }}</h1> > <h3>{{art.anonce }}</h3> > <img src="{{art.image}}"/> > > {% endfor %} > >
<img src="{{ MEDIA_URL }}{{ art.image }}"/> This will add the media url that you set for MEDIA_URL in settings.py (as long as the context processor for media is also set) an example of mine: TEMPLATE_CONTEXT_PROCESSORS = ( "django.core.context_processors.auth", "django.core.context_processors.debug", "django.core.context_processors.i18n", "django.core.context_processors.media", } As long as the url generated points to the image, this should work. Mike -- Ever get the feeling that the world's on tape and one of the reels is missing? -- Rich Little
signature.asc
Description: This is a digitally signed message part.