Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
GeoInt_SIDT
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mario Chirinos Colunga
GeoInt_SIDT
Commits
2ba67d01
Commit
2ba67d01
authored
May 04, 2018
by
Mario Chirinos Colunga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
search frame
parent
179730eb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
15 deletions
+16
-15
productList.html
catalog/templates/productList.html
+13
-12
views.py
catalog/views.py
+3
-3
No files found.
catalog/templates/productList.html
View file @
2ba67d01
...
...
@@ -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>
...
...
catalog/views.py
View file @
2ba67d01
...
...
@@ -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]})
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment