I'm trying to make a simple Hello World web page in Python 3.7.4 and web.py 0.40-dev1
(which is supposed to be compatible) and I'm running into
AttributeError: module 'web' has no attribute 'applications'
error. I've googled enough to know that is a name collision, but for the love of God I can't trace it.
Here's the full code:
import web
urls = (
'/', 'index'
)
application = web.applications(urls, globals())
class index:
def GET(self):
greeting = 'Hello world'
return greeting
if __name__ == "__main__":
application.run
And here's the full Python interpreter output:
Traceback (most recent call last):
File "bin\app.py", line 7, in <module>
application = web.applications(urls, globals())
AttributeError: module 'web' has no attribute 'applications'