016 flask:jinja2.exceptions.TemplateAssertionError: block 'title' defined twice

感觉很迷,把代码注释后报错,删除这段代码就没问题了,不知道为什么:


{% extends "base.html" %}

{% block title %}Flasky{% endblock %}

{% block page_content %}
<div class="page-header">
    <h1>Hello, {{name}} !h1>
div>
{% endblock %}








    
        
            
                
                
                
                
            
            
        
        
            
                
            
        
    





    
        
    




提示有两个title,确实注释里面有一个title


{% extends "base.html" %}

{% block title %}Flasky{% endblock %}

{% block page_content %}
<div class="page-header">
    <h1>Hello, {{name}} !h1>
div>
{% endblock %}

你可能感兴趣的:(毕设--人脸识别,html,python,bootstrap)