为什么在前端输入localhost:8080/提示not found 是路径不对么
import web
render = web.template.render('tompalates') #相对路径或绝对路径 相对与.py文件
urls = (
'/index', 'index',
'/blog/\d+', 'blog',
'/(.*),', 'hello'
)
app = web.application(urls, globals())
class index:
def GET(self):
query = web.input()
return query
class blog:
def POST(self):
data = web.input()
return data
def GET(self):
return web.ctx.env
class hello:
def GET(self, name):
return render.hello1()