django.contrib.staticfiles.templatetags.staticfiles: 5 total statements, 0.0% covered

Generated: Wed 2013-03-13 10:33 CET

Source file: /media/Envs/Envs/filer-gallery/lib/python2.7/site-packages/django/contrib/staticfiles/templatetags/staticfiles.py

Stats: 0 executed, 3 missed, 2 excluded, 8 ignored

  1. from django import template
  2. from django.contrib.staticfiles.storage import staticfiles_storage
  3. register = template.Library()
  4. @register.simple_tag
  5. def static(path):
  6. """
  7. A template tag that returns the URL to a file
  8. using staticfiles' storage backend
  9. """
  10. return staticfiles_storage.url(path)