PageRenderTime 17ms CodeModel.GetById 11ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/django/contrib/admin/templatetags/adminmedia.py

https://code.google.com/p/mango-py/
Python | 11 lines | 6 code | 2 blank | 3 comment | 0 complexity | ef6530104e65aebcf1755d615bbc8bab MD5 | raw file
 1from django.template import Library
 2from django.templatetags.static import PrefixNode
 3
 4register = Library()
 5
 6@register.simple_tag
 7def admin_media_prefix():
 8    """
 9    Returns the string contained in the setting ADMIN_MEDIA_PREFIX.
10    """
11    return PrefixNode.handle_simple("ADMIN_MEDIA_PREFIX")