<img src="{{ MEDIA_URL }}images/image.jpg"/> if you include the django.core.context_processors.media context processor
http://docs.djangoproject.com/en/dev/ref/templates/api/?from=olddocs#django-core-context-processors-media On Thu, Feb 26, 2009 at 8:04 PM, AKK <andrewkenyon...@gmail.com> wrote: > > Hi, > > I have a template and I want to get some images out of my media root. > I was wondering is there anyway to automatically return the media root > from settings.py rather than manually specifying it rather each time. > > Thanks > > Andrew > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---