Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I have a python/Flask program here. I trying to find out where in the code it is

ID: 3871833 • Letter: I

Question

I have a python/Flask program here. I trying to find out where in the code it is allowing me to continually loop through the program as i enter different queary's. see pix for better understanding.

*Python/Flask web app program.

I have a python/Flask program here. I trying to find out where in the code it is allowing me to continually loop through the program as i enter different queary's on the local host web app. see pix for better understanding.

There are many different query requests being made on the console they are in red. every time i query the web app on my local host it generates a new HTTP (request??) in the pyCharm console.

if someone can just highlight or copy paste the area of the code that it is allowing me to do that. thanks. python/flask and HTML code included.

HERE is my code and screenshot:

*****************my pyCharm python/flask code below:*******************

#!/usr/bin/env python

********MyHTML CODE:**********

File templates/date-picker.html:

<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<h2>Date Selection</h2>
<form action="#" method="post">
<label> Date from:
{{ form.dt_from(class='datepicker') }}
{{ form.tm_from( ) }}
</label>
<label>Date to:
{{ form.dt_to(class='datepicker') }}
{{ form.tm_to( ) }}
</label>
{{ form.hidden_tag() }}
<input type="submit"/>
</form>
{% if images_list %}
<h2>Files that were found:</h2>
<table class="table">
<thead>
<tr>
<th>Date&time</th>
<th>Name</th>
</tr>
</thead>
<tbody>
{% for image in images_list %}
<tr>
<td>{{ image.date_time }}</td>
<td>{{ image.name }}</td>
</tr>
{% endfor %}
</tbody>

</table>
{% endif %}
</div>
</body>
</html>

A as 1270.0.1 XIE Decep UserschkDescenplaythontaseproject this categy Pharm community Edition 2017. O A 127.00 1 scoor. * A LA Desktop a a + 1 pm Boyer help-destest-coded Date Selection O126 AM Date from: 222015 Date to: 1262017 7:29 PM 0 V Desktop Adherence Cass B FALL 20 V python a palliatwhorses have seven years as it was a social has inspirin indust call from a hospelwater rear-weaponent matchesion in n/a test Port "TT. Ramrat key set land stains an object handir na path . shapesh (ne path. dirhams (file) JGALonen_DATABAaron ne - sal1to1// as path. in Ibadir, app de) Python Perhofia a pythonia " Butches scripting Seagate Scituate A descop Desktop 1L, "QualexMANAMAs Rolf, engine senator angina (All ri, PenrRatani and Stern) not disression - toopedression (Sarsformskar (autocortPales, autotush-Palse, ind-sic. engine a L. Has a resultative bowen Ani, Mann, piary sal. Ah _ransion guary reporty (I defiade to it 12 r, a at sti. ch 8 233Asset Python a Rantarsing with that - Deitage is activel E . Deluccex N : 270-07g-720 Bunting was a past 1ST... An POOL (ARMM ewe to ruit) 127..1 - - 12/simpa17 13241 aer 1 were 1.1" Aon - (R/ap/2012 1529a) poor / TTS1.17 00 17.0.0.1 - - 17/aep/eu.7 1 ) TOOT NETT / 1 0 - 107.0.0.1 - - (7/asp/2012 12: s: FOUR RE. 1" too - 11.0.0.1 - - 18/sup/2011 1:28.341 "year ear/1.1" too - - (23/sara17 16:4111 or I wrT11" (HR/Sep 7 16411Bs) TopTI TE/.1 vo 0 Pecharge installed sales will retailed package idio-T, becauPont, TL. Codey 24 PM a DP O Type there to search 02/2011

Explanation / Answer

Whenever any query is made, control is invoked from the current module that is main module.

app.run() gets invoked then.

Basically these web application frame work(django or flaskr) follows MVC (Model view controller) pattern.

views handles the different HTTP request methods. Model handles the database. Controller coordinates among all.

So here the decorator app.route is initiated for the POST and GET methods calling hello_world method.