mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-14 05:36:50 +03:00
Merge pull request #559 from michaelmior/django1.5-static
{% static %} template tag for Django 1.5
This commit is contained in:
commit
2034009b59
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user