Django: Invalid block tag on line 5: 'static', expected 'endblock'. Did you forget to register or load this tag?
错误释义:在第5行中无效的块标签:'static',期望的'endblock'。你忘记登记或装载这个标签了吗?
错误原因:没有引入static文件
{% extends 'base.html' %} {% load static %} {% block ext_css %} {{block.super}} <link rel="stylesheet" href="{% static 'axf/main/css/main.css' %}"> {% endblock %}
学以致用,知行合一