web.py : Error loading multiple html files via iFrames
<p>I am learning <code>web.py</code> and trying out a application where <code>web.py</code> needs to load a <code>html</code> file having <code>iframes</code> that loads three different <code>html</code> files.</p>

<p>The <code>index.html</code> file loads properly with desired results when launched directly from  <code>web-browser</code>, However gives <code>not found</code> error upon loading via <code>app.py</code>.</p>

<p>Here is directory structure:</p>

<pre><code>appdir/  
      app.py  
      templates/  
               index.html
               frames_top.html
               frames_left.html
               frames_right.html
</code></pre>

<p><strong>Here are contents of <code>index.html</code></strong></p>

<pre><code>&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Example - Frames&lt;/title&gt;
&lt;/head&gt;
&lt;iframe name="top_frame" src="frames_top.html" width="100%" height="100"&gt; scrolling="no" align="top" &lt;/iframe&gt; 

&lt;iframe name="left_frame" style="border-style: none; border-color: inherit; border-width: 10px; height:1222px; width:10%;" src="frames_left.html" target="right_frame" scrolling="no" align="left" &gt;
&lt;/iframe&gt;

&lt;iframe name="right_frame" style="border-style: none; border-color: inherit; border-width: 10px; height:1222px; width:90%;" src="frames_right.html" target="right_frame" scrolling="no" align="middle" &gt;
&lt;/iframe&gt; 
&lt;/html&gt;
</code></pre>

<p>and here are contents of <code>app.py</code>               </p>

<pre><code>import web

""" url definition""" 
urls = (
  '^/$', 'do_index_frame',
  '^/$', 'do_left_frame',
  '^/$', 'do_right_frame',
  '^/$', 'do_top_frame'
)


app = web.application(urls, globals())

render = web.template.render('templates/')

class do_index_frame:
    def GET(self):
        return render.index()

class do_left_frame:    
    def GET(self):
        return render.frames_left()

class do_right_frame:    
    def GET(self):
        return render.frames_right()

class do_top_frame:    
    def GET(self):   
        return render.frames_top()


if __name__ == "__main__":
    app.run()
</code></pre>

<p>When I run <code>app.py</code> and launch browser at <code>127.0.0.1:8080</code>,<br>
<strong>I get following screen</strong>    </p>

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

<p><strong>With this error:</strong></p>

<pre><code>Python 2.7.9 (default, Dec 10 2014, 12:24:55) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
&gt;&gt;&gt; ================================ RESTART ================================
&gt;&gt;&gt; 
http://0.0.0.0:8080/
127.0.0.1:56483 - - [25/May/2016 15:00:06] "HTTP/1.1 GET /" - 200 OK
127.0.0.1:56483 - - [25/May/2016 15:00:07] "HTTP/1.1 GET /frames_top.html" - 404 Not Found127.0.0.1:56482 - - [25/May/2016 15:00:07] "HTTP/1.1 GET /frames_left.html" - 404 Not Found

127.0.0.1:56493 - - [25/May/2016 15:00:07] "HTTP/1.1 GET /frames_right.html" - 404 Not Found
127.0.0.1:58680 - - [25/May/2016 15:13:25] "HTTP/1.1 GET /" - 200 OK
127.0.0.1:58680 - - [25/May/2016 15:13:25] "HTTP/1.1 GET /frames_top.html" - 404 Not Found
127.0.0.1:58682 - - [25/May/2016 15:13:25] "HTTP/1.1 GET /frames_left.html" - 404 Not Found
 127.0.0.1:58681 - - [25/May/2016 15:13:25] "HTTP/1.1 GET /frames_right.html" - 404 Not Found
</code></pre>

<p>Is anyone able to determine the cause of the error?</p>