PageRenderTime 54ms CodeModel.GetById 24ms 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
Possible License(s): BSD-3-Clause
  1. from django.template import Library
  2. from django.templatetags.static import PrefixNode
  3. register = Library()
  4. @register.simple_tag
  5. def admin_media_prefix():
  6. """
  7. Returns the string contained in the setting ADMIN_MEDIA_PREFIX.
  8. """
  9. return PrefixNode.handle_simple("ADMIN_MEDIA_PREFIX")