search frame

parent 179730eb
......@@ -9,19 +9,20 @@
</head>
<body>
<ul class="catalog">
{% for i in catalog %}
<li>
<div><img src="{{i.thumbnailUrl}}" width="64px"/></div>
<div>
{{i.productName}}<br>
{{i.sceneDate}}
PRUEBA
<!-- <ul class="catalog">-->
<!-- {% for i in catalog %}-->
<!-- <li>-->
<!-- <div><img src="{{i.thumbnailUrl}}" width="64px"/></div>-->
<!-- <div>-->
<!-- {{i.productName}}<br>-->
<!-- {{i.sceneDate}}-->
</div>
<div class="buyIcon"></div>
</li>
{% endfor %}
</ul>
<!-- </div>-->
<!-- <div class="buyIcon"></div>-->
<!-- </li>-->
<!-- {% endfor %}-->
<!-- </ul>-->
</body>
</html>
......
......@@ -39,7 +39,7 @@ def productList(request):
print url
response = requests.get(url)
json = response.json()
# response = requests.get(url)
# json = response.json()
return render(request,'productList.html',{"catalog":json[0]})
return render(request,'productList.html',{}) #"catalog":json[0]})
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment