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
d387b86f
Commit
d387b86f
authored
Oct 08, 2018
by
Renán Sosa Guillen
Browse files
Options
Browse Files
Download
Plain Diff
perfomance improvement
parents
ce6d960a
db6c4427
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
377 additions
and
1 deletion
+377
-1
L2ASCL_data.html
catalog/templates/L2ASCL_data.html
+312
-0
data_top.html
catalog/templates/data_top.html
+57
-0
urls.py
catalog/urls.py
+2
-1
views.py
catalog/views.py
+5
-0
db.sqlite3
db.sqlite3
+0
-0
geosentinel
geosentinel
+1
-0
No files found.
catalog/templates/L2ASCL_data.html
0 → 100644
View file @
d387b86f
This diff is collapsed.
Click to expand it.
catalog/templates/data_top.html
0 → 100644
View file @
d387b86f
<!DOCTYPE html>
{% load static %}
<html>
<head>
<meta
charset=
"utf-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<title>
AdminLTE 2 | ChartJS
</title>
<!-- Tell the browser to be responsive to screen width -->
<meta
content=
"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
name=
"viewport"
>
<!-- Bootstrap 3.3.7 -->
<link
rel=
"stylesheet"
href=
"{% static 'adminlte/bower_components/bootstrap/dist/css/bootstrap.min.css' %}"
>
<!-- Font Awesome -->
<link
rel=
"stylesheet"
href=
"{% static 'adminlte/bower_components/font-awesome/css/font-awesome.min.css' %}"
>
<link
rel=
"stylesheet"
href=
"https://use.fontawesome.com/releases/v5.0.13/css/all.css"
integrity=
"sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp"
crossorigin=
"anonymous"
>
<!-- Ionicons -->
<link
rel=
"stylesheet"
href=
"../../bower_components/Ionicons/css/ionicons.min.css"
>
<!-- Theme style -->
<link
rel=
"stylesheet"
href=
"{% static 'adminlte/dist/css/AdminLTE.css' %}"
>
<!-- AdminLTE Skins. Choose a skin from the css/skins
folder instead of downloading all of them to reduce the load. -->
<link
rel=
"stylesheet"
href=
"{% static 'adminlte/dist/css/skins/_all-skins.css' %}"
>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<!-- Google Font -->
<link
rel=
"stylesheet"
href=
"https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic"
>
</head>
<body
class=
"hold-transition skin-blue sidebar-mini"
>
{% block content %}{% endblock %}
<!-- ./wrapper -->
<!-- jQuery 3 -->
<script
src=
"{% static 'adminlte/bower_components/jquery/dist/jquery.min.js' %}"
></script>
<!-- Bootstrap 3.3.7 -->
<script
src=
"{% static 'adminlte/bower_components/bootstrap/dist/js/bootstrap.min.js' %}"
></script>
<!-- ChartJS -->
<script
src=
"{% static 'adminlte/bower_components/chart.js/Chart.js' %}"
></script>
<!-- FastClick -->
<script
src=
"../../bower_components/fastclick/lib/fastclick.js"
></script>
{% block scripts %}{% endblock %}
</body>
</html>
catalog/urls.py
View file @
d387b86f
...
...
@@ -11,6 +11,7 @@ urlpatterns = [
url
(
r'^imgrequest/$'
,
views
.
requestToImage
,
name
=
'img-rqst'
),
url
(
r'^cartrequest/$'
,
views
.
saveInCart
,
name
=
'cart-rqst'
),
url
(
r'^fromcartrqst/$'
,
views
.
getFromCart
,
name
=
'from-cart-rqst'
),
url
(
r'^purchcartrqst/$'
,
views
.
purchaseProduct
,
name
=
'purch-prod-rqst'
)
url
(
r'^purchcartrqst/$'
,
views
.
purchaseProduct
,
name
=
'purch-prod-rqst'
),
url
(
r'^scl/$'
,
views
.
L2ASCL_data
,
name
=
'L2ASCL-data'
)
]
catalog/views.py
View file @
d387b86f
...
...
@@ -198,6 +198,11 @@ def getFromCart(request):
return
JsonResponse
({
'product_list'
:
prod_list
})
def
L2ASCL_data
(
request
):
with
open
(
"/home/mchc/data.json"
)
as
f
:
json_data
=
json
.
load
(
f
)
print
(
json_data
)
return
render
(
request
,
'L2ASCL_data.html'
,
{
"labels"
:
","
.
join
([
k
for
k
in
json_data
]),
"vegetation"
:[
v
[
"4"
]
for
k
,
v
in
json_data
.
items
()]
})
#-------------------------------------------------------------------------------
def
purchaseProduct
(
request
):
"""
...
...
db.sqlite3
View file @
d387b86f
No preview for this file type
geosentinel
0 → 120000
View file @
d387b86f
/home/mchc/git/GeoSentinel/geosentinel/
\ No newline at end of file
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