title: Error in using python web.py framework
body: <p>I am working on python, i want to develop some simple web application which consists of 3 pages(forms) </p>
  
  <ol>
  <li><p><code>login screen</code> which should validate username and password and redirect to 2nd page </p></li>
  <li><p>If user present it redirects to this page which consists of a list of records and <code>add button</code> to add another record</p></li>
  <li><p>When clicked on <code>add record</code> in 2nd page that should redirect to this page which consists of a simple form fields which takes data and saving to 2nd page as a record in a list when clicked on <code>submit</code> button</p></li>
  </ol>
  
  <p>I don't want to use high level frameworks like django for the above small requirement so decided to use one of the following frameworks after googgling a lot</p>
  
  <p>Wheezy.web ( <a href="https://bitbucket.org/akorn/wheezy.web/downloads" rel="nofollow">https://bitbucket.org/akorn/wheezy.web/downloads</a>)</p>
  
  <p>web.py  ( <a href="http://webpy.org/" rel="nofollow">http://webpy.org/</a>)</p>
  
  <p>bottle (http://bottlepy.org/docs/dev/)</p>
  
  <p>Flask (http://flask.pocoo.org/)</p>
  
  <p>I started to use <code>web.py</code> framework and created a <code>code.py</code> file as indicated in the tutorial as below</p>
  
  <p><strong>code.py</strong></p>
  
  <pre><code>import web
  render = web.template.render('templates/')
  
  urls = ( '/', 'index' )
  
  if __name__ == "__main__": 
      app = web.application(urls, globals())
      app.run()  
  </code></pre>
  
  <p>After running the above file with <code>python code.py</code> the result is </p>
  
  <pre><code>sh-4.2$ python code.py 
  http://0.0.0.0:8080/
  </code></pre>
  
  <p>i have change the ip and port as below </p>
  
  <pre><code>python code.py 192.168.1.112:2030
  </code></pre>
  
  <p>and tried to access through a browser , then i recieved the following error </p>
  
  <pre><code>&lt;type 'exceptions.KeyError'&gt; at /
  u'index'
  Python  /usr/lib/python2.7/site-packages/web/application.py in _delegate, line 418
  Web     GET http://0.0.0.0:8080/
  Traceback (innermost first)
  
      /usr/lib/python2.7/site-packages/web/application.py in _delegate
          cls = fvars[f] ...
      ▶ Local vars
      /usr/lib/python2.7/site-packages/web/application.py in handle
          return self._delegate(fn, self.fvars, args) ...
      ▶ Local vars
      /usr/lib/python2.7/site-packages/web/application.py in process
          return self.handle() ...
      ▶ Local vars
  
  Request information
  INPUT No data.
  COOKIES No data.
  ...............
  </code></pre>
  
  <p>Actually when i type the url in to address bar a hello world message should appear as indicated in tutorial, but instead i am getting the above error.</p>
  
  <ol>
  <li>Can anyone please suggest on how to achieve the above requirement for developing a login screen in python without using a django framework and cgi in python</li>
  <li>I am unable to find out how to use these frameworks to use to develop because for example <code>Wheezy.web ( https://bitbucket.org/akorn/wheezy.web/downloads)</code> framework provided there is no docuemntation showing on how to create a file and start developing</li>
  </ol>
  
  <p>please help me on the above scenarios</p>