0

我有一个简单的 index.html 文件,其代码如下:

<html>
<head>
<link href='http://fonts.googleapis.com/css?family=Fruktur' rel='stylesheet' type='text/css'>
<style type="text/css">
.container {
    background-color: #022e3a;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 16px;
    font-style: normal;
    color: #ffffff;
}
#header {
    font-family: 'Fruktur', cursive;
    font-size: 36px;
    color: #ffffff;
    background-color: #065e76;
}
</style>
<head>
<body class="container">
<div id="header">
<p>DaamJani.com</p>
</div>
<div>
<form method="GET">
    Ask for price(e.g.Onion)
<input type="text" name="search">
    <input type="submit" value="Submit" />
</form>
</div>
<br/>
<div>No. of elements : {{ prices|length }}</div>
<div>
<table border='1'>
        <tr>
            <td>Item</td><td>Price</td><td>Per Amount</td><td>Where</td>
        </tr>
        {% for price in prices %}

            <tr>
                <td>{{price.name}}</td><td>{{price.price}}</td><td>{{price.quantity}}</td><td>{{price.source}}</td>
            </tr>
        {% endfor %}


</table>
</div>

</body>
</html>

虽然我最近添加了这一行:<div>No. of elements : {{ prices|length }}</div>一旦我运行服务器,应用程序似乎并没有改变。我尝试清除缓存并重新加载它。我尝试删除包含表格的整个 div,但它显示的视图与以前相同。这有什么问题?

4

0 回答 0