Home | Trees | Indices | Help |
---|
|
1 from urlparse import * 2 from django.template import Library 3 from django.contrib.sites.models import Site 4 from django.conf import settings 5 from django import template 6 7 register = Library() 8 9 @register.tag(name="absolute_media_url")11 """Provides MEDIA_URL, but adds the hostname if necessary 12 """ 13 return AbsoluteMediaUrlNode(settings.MEDIA_URL)14 26
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Tue Oct 30 11:31:03 2012 | http://epydoc.sourceforge.net |