I have to import another class in webpy Web.py
urls = (
'/', "Home"
)
class Web:
def __init__(self):
app = web.application(urls, globals())
app.run()
home.py
class Home:
def GET(self):
return "Hello, world!"
can any one tell me why this is not working?
If both files are in the same folder then you may try this:
urls = (
'/', "home.Home"
)