Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/django/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
django:尽管html发生了变化,但仍然一次又一次地显示相同的视图_Html_Django_Templates - Fatal编程技术网

django:尽管html发生了变化,但仍然一次又一次地显示相同的视图

django:尽管html发生了变化,但仍然一次又一次地显示相同的视图,html,django,templates,Html,Django,Templates,我有一个简单的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: Verdan

我有一个简单的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>

.集装箱{
背景色:#022e3a;
字体系列:Verdana,日内瓦,无衬线;
字体大小:16px;
字体风格:普通;
颜色:#ffffff;
}
#标题{
字体系列:“Fruktur”,草书;
字体大小:36px;
颜色:#ffffff;
背景色:#065e76;
}
DaamJani.com

询问价格(例如洋葱)
元素数量:{{prices | length}} ItemPricePer AmountWhere {价格百分比中的价格百分比} {{price.name}{{price.price}{{price.quantity}{{price.source}} {%endfor%}
虽然我最近添加了这一行:
元素的数量:{{prices | length}}
一旦我运行服务器,应用程序似乎不会改变。我试图清除缓存并重新加载它。 我试图删除包含该表的整个div,但它显示的视图与以前相同。
这有什么问题?

请尝试同时删除缓存并运行应用程序。我也有使用缓存的经验,所以我决定删除缓存,不再使用它。但是在你的问题中,只需暂时删除它,稍后再返回(缓存)就行了。对不起,没有得到你的答案。在平均时间内移除它意味着什么?我删除了两次缓存!提前谢谢。我的意思是禁用缓存功能,而不仅仅是清除它。如果你只是清除它就没有效果。我不知道如何禁用它:(你能…我怎么能?我不在那里,我也不知道你的代码的模式。只要跟踪你把它放在哪里就行了。