Is it possible to get values from my local machine to my form inputs tag?
<p>I have this code:</p>

<pre><code>&lt;div class="col-md-12"&gt;
            &lt;div class="form-panel"&gt;
                &lt;h4&gt;&lt;i class="fa fa-angle-right"&gt;&lt;/i&gt; Testing &lt;/h4&gt;
                &lt;hr /&gt;
                &lt;form method="post" name="ibisaserver"&gt;
                    &lt;div class="form-group"&gt;
                        &lt;label class="col-sm-3 col-sm-3 control-label"&gt;Address:&lt;/label&gt;
                        &lt;div class="col-sm-9"&gt;
                            &lt;input type="text" class="form-control"  name="interfaces" value="" required&gt;
                        &lt;/div&gt;      
                    &lt;/div&gt;  
                     &lt;div class="form-group "&gt;
                        &lt;label class="col-sm-3 col-sm-3 control-label"&gt;Network: &lt;/label&gt;
                        &lt;div class="col-sm-9"&gt;
                            &lt;input type="text" class="form-control" name="direccionIp" value="" required&gt;
                        &lt;/div&gt;
                    &lt;/div&gt;
                     &lt;div class="form-group"&gt;
                        &lt;label class="col-sm-3 col-sm-3 control-label"&gt;Netmask : &lt;/label&gt;
                        &lt;div class="col-sm-9"&gt;
                            &lt;input type="text" class="form-control" name="mascaraSub" value="" required&gt;
                        &lt;/div&gt;
                    &lt;/div&gt;
                    &lt;div class="form-group"&gt;
                        &lt;label class="col-sm-3 col-sm-3 control-label"&gt;Broadcast : &lt;/label&gt;
                        &lt;div class="col-sm-9"&gt;
                            &lt;input type="text" class="form-control" name="direccionGat" value="" required&gt;
                        &lt;/div&gt;
                    &lt;/div&gt;
</code></pre>

<p>As you can see I have 4 inputs tag..</p>

<p>And I have this code as well:</p>

<pre><code>with open("/etc/network/interfaces", "r") as file:
    content = file.read()
    print content
</code></pre>

<p>Where I'm getting the information I need from the following path : "/etc/network/interfaces".</p>

<p>Something like this:</p>

<p><a href="http://i.stack.imgur.com/P9O0X.png" rel="nofollow"><img src="http://i.stack.imgur.com/P9O0X.png" alt="enter image description here"></a></p>

<p>Now, My question is: Is there a way to show the data I'm getting from my python or my local machine ("etc/network/interfaces") to my input tags? </p>

<p>There are two ways which you can use:</p>

<ol>
<li><p>Make the python file generate the output html file, which you can use. <a href="https://www.decalage.info/python/html" rel="nofollow">HTML.py</a> is a good option to start with it.</p></li>
<li><p>You can use XmlHttpRequest to read local files using javascript and populate the data automatically using JQuery.</p></li>
</ol>

javascript python html linux debian