search frame

parent 179730eb
...@@ -9,19 +9,20 @@ ...@@ -9,19 +9,20 @@
</head> </head>
<body> <body>
<ul class="catalog"> PRUEBA
{% for i in catalog %} <!-- <ul class="catalog">-->
<li> <!-- {% for i in catalog %}-->
<div><img src="{{i.thumbnailUrl}}" width="64px"/></div> <!-- <li>-->
<div> <!-- <div><img src="{{i.thumbnailUrl}}" width="64px"/></div>-->
{{i.productName}}<br> <!-- <div>-->
{{i.sceneDate}} <!-- {{i.productName}}<br>-->
<!-- {{i.sceneDate}}-->
</div> <!-- </div>-->
<div class="buyIcon"></div> <!-- <div class="buyIcon"></div>-->
</li> <!-- </li>-->
{% endfor %} <!-- {% endfor %}-->
</ul> <!-- </ul>-->
</body> </body>
</html> </html>
......
...@@ -39,7 +39,7 @@ def productList(request): ...@@ -39,7 +39,7 @@ def productList(request):
print url print url
response = requests.get(url) # response = requests.get(url)
json = response.json() # 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