Commit 2034009b by Tom Christie

Merge pull request #559 from michaelmior/django1.5-static

{% static %} template tag for Django 1.5
parents 12bb25b3 9b67a33b
...@@ -23,7 +23,7 @@ register = template.Library() ...@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment