https://docs.djangoproject.com/en/1.0/ref/templates/api/#django-core-context-processors-media
you need MEDIA_URL
--
regards
Kenneth Gonsalves
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
MEDIA_ROOT is a file-system location, not a URL-space location, and
should not be exposed in templates. It is nonsense to use media root
as a prefix to the URL-space location of your javascript files.
Cheers
Tom
in the view:
from django.conf import settings
and send settings.MEDIA_ROOT to the template
or build a templatetag to do the same thing.
--
regards
Kenneth Gonsalves