@app.route('/')
def index():
context = {
'question':Question.query.all()
}
{% extends 'base.html' %}
{% block title %}Detail{% endblock %}
{% block head %}
<link href="{{ url_for('static',filename='CSS/detail.css') }}" rel="stylesheet" type="text/css">
{% endblock %}
{% block main %}
<div class="detail">
<h2>title</h2>
<a href="#">username</a>
<span>creat_time</span>
<div class="p">
<p>detail</p>
</div>
<textarea rows="5"></textarea><br>
<button >发送</button>
<br>
<ul>
<p>Comment</p>
<li>
<a href="#">username</a>
<span>creat_time</span><br>
<p>comment</p>
</li>
<li>
<a href="#">username</a>
<span>creat_time</span><br>
<p>comment</p>
</li>
</ul>
</div>
{% endblock %}
@app.route('/detail/')
def detail():
return render_template('detail.html')