On Jan 12, 2:59 pm, jazztpt <annacalla...@gmail.com> wrote:
>
> That page in the docs doesn't say anything about how to call this from
> the view.  Are these files automatically accessed by an <img> tag?  I
> didn't see any special image tag (like the image_tag in rails) in the
> template tags or in my search of the docs.
> Thanks
>
>
Look at this:
http://docs.djangoproject.com/en/dev/ref/templates/api/#django-core-context-processors-media

Using that makes {{ MEDIA_URL }} available in your templates. Then you
can write stuff like this:

<img src="{{ MEDIA_URL }} images/myimage.jpg" ... />
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to