Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8643963
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T12:10:47+00:00 2026-06-12T12:10:47+00:00

I am working on python, i want to develop some simple web application which

  • 0

I am working on python, i want to develop some simple web application which consists of 3 pages(forms)

  1. login screen which should validate username and password and redirect to 2nd page

  2. If user present it redirects to this page which consists of a list of records and add button to add another record

  3. When clicked on add record 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 submit button

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

Wheezy.web ( https://bitbucket.org/akorn/wheezy.web/downloads)

web.py ( http://webpy.org/)

bottle (http://bottlepy.org/docs/dev/)

Flask (http://flask.pocoo.org/)

I started to use web.py framework and created a code.py file as indicated in the tutorial as below

code.py

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

urls = ( '/', 'index' )

if __name__ == "__main__": 
    app = web.application(urls, globals())
    app.run()  

After running the above file with python code.py the result is

sh-4.2$ python code.py 
http://0.0.0.0:8080/

i have change the ip and port as below

python code.py 192.168.1.112:2030

and tried to access through a browser , then i recieved the following error

<type 'exceptions.KeyError'> 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.
...............

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.

  1. 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
  2. I am unable to find out how to use these frameworks to use to develop because for example Wheezy.web ( https://bitbucket.org/akorn/wheezy.web/downloads) framework provided there is no docuemntation showing on how to create a file and start developing

please help me on the above scenarios

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T12:10:48+00:00Added an answer on June 12, 2026 at 12:10 pm

    The line:

    urls = ( '/', 'index' )
    

    tells web.py the url / should be handled by a class index. You have not created such class and therefore you get the error. Fix it like so:

    import web
    
    urls = (
        '/', 'index'
    )
    
    class index:
        def GET(self):
            return "Hello, world!"
    
    if __name__ == "__main__":
        app = web.application(urls, globals())
        app.run()
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a simple GUI code editor in Python, and I want to
I'm working to develop a small system for extracting content from web pages (I
I'm new in working with python and Django. I want to write a web
Working with Python in Emacs if I want to add a try/except to a
I am working with python plugins.I used list to store some values as below:
Possible Duplicate: Retrieving python module path I am working on python,i installed web.py framework
I have a working Python based program that I want to run as a
I'm working inside the Python REPL, and I want to save my work periodically.
I want to extend python and numpy by writing some modules in C or
I am working on Python 2.6.5. Given a Abstract Syntax Tree, I want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.