我无法在Django的块中使用静态模板命令

Sud*_*hra 2 django django-templates

django中的以下模板代码给出了错误.

{% block css %}
    <link rel="stylesheet" type="text/css" href="{% static 'correlation_search_create.css' %}">
{% endblock %}
Run Code Online (Sandbox Code Playgroud)

错误:

TemplateSyntaxError at /search/create/
Invalid block tag on line 4: 'static', expected 'endblock'
Request Method: GET
Request URL:    http://localhost:8000/search/create/
Django Version: 1.9a1
Exception Type: TemplateSyntaxError
Exception Value:    
Invalid block tag on line 4: 'static', expected 'endblock'
Run Code Online (Sandbox Code Playgroud)

Wto*_*wer 8

加:

{% load staticfiles %}
Run Code Online (Sandbox Code Playgroud)

在模板的开头.

参考:静态文件.