Use the correct static template tag in Django 1.5

This commit is contained in:
Michael Mior 2013-01-06 15:49:12 -05:00
parent 12bb25b372
commit 9b67a33b92

View File

@ -23,7 +23,7 @@ register = template.Library()
# conflicts with this rest_framework template tag module. # conflicts with this rest_framework template tag module.
try: # Django 1.5+ try: # Django 1.5+
from django.contrib.staticfiles.templatetags import StaticFilesNode from django.contrib.staticfiles.templatetags.staticfiles import StaticFilesNode
@register.tag('static') @register.tag('static')
def do_static(parser, token): def do_static(parser, token):