Message295071
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() |
|
Date |
User |
Action |
Args |
2017-06-03 08:36:44 | Mahira | set | recipients:
+ Mahira, terry.reedy |
2017-06-03 08:36:44 | Mahira | set | messageid: <1496479004.44.0.605071340261.issue30559@psf.upfronthosting.co.za> |
2017-06-03 08:36:44 | Mahira | link | issue30559 messages |
2017-06-03 08:36:43 | Mahira | create | |
|