This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Mahira
Recipients Mahira, terry.reedy
Date 2017-06-03.08:36:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1496479004.44.0.605071340261.issue30559@psf.upfronthosting.co.za>
In-reply-to
Content
Hai 

I followed your Tutorial
In the Following Program, i am getting 
Traceback (most recent call last):
  File "C:\Users\Mahira\AppData\Local\Programs\Python\Python36\Scripts\localhost.py", line 1, in <module>
    import web
  File "C:\Users\Mahira\AppData\Local\Programs\Python\Python36\Scripts\web.py", line 6, in <module>
    app = web.application(("urls"),globals())
AttributeError: module 'web' has no attribute 'application'

And my program is:

import web

urls = (
    '/', 'index'
)

class index:
    def GET(self):
        return "Hello, world!"

if __name__ == "__main__":
    app = web.application(urls, globals())
    app.run()
History
Date User Action Args
2017-06-03 08:36:44Mahirasetrecipients: + Mahira, terry.reedy
2017-06-03 08:36:44Mahirasetmessageid: <1496479004.44.0.605071340261.issue30559@psf.upfronthosting.co.za>
2017-06-03 08:36:44Mahiralinkissue30559 messages
2017-06-03 08:36:43Mahiracreate