TemplateSyntaxError at /depotapp/product/list/
<ExtendsNode: extends "base.html"> must be the first tag in the template.
Request Method: GET
Request URL: http://127.0.0.1:8000/depotapp/product/list/
Django Version: 1.6.8
Exception Type: TemplateSyntaxError
Exception Value:
<ExtendsNode: extends "base.html"> must be the first tag in the template.
<ExtendsNode: extends "base.html"> must be the first tag in the template.
Request Method: GET
Request URL: http://127.0.0.1:8000/depotapp/product/list/
Django Version: 1.6.8
Exception Type: TemplateSyntaxError
Exception Value:
<ExtendsNode: extends "base.html"> must be the first tag in the template.
解决:
{% extends "你的模板页面"%}必须放在子页面的开头,前面连一个注释行都不可以。