Statistics
| Branch: | Revision:

root / env / lib / python2.7 / site-packages / django / contrib / admin / templatetags / admin_static.py @ 1a305335

History | View | Annotate | Download (321 Bytes)

1
from django.conf import settings
2
from django.template import Library
3

    
4
register = Library()
5

    
6
if 'django.contrib.staticfiles' in settings.INSTALLED_APPS:
7
    from django.contrib.staticfiles.templatetags.staticfiles import static
8
else:
9
    from django.templatetags.static import static
10

    
11
static = register.simple_tag(static)