add_routes(app,'handlers') 因为有这句。
handlers 里面 @get('/') async def index(request): users = await User.findAll() return{ 'template' : 'test.html', 'users' : users }
一些引入要自己加啊。
Sign in to make a reply
完美佩恩
add_routes(app,'handlers') 因为有这句。
handlers 里面 @get('/') async def index(request): users = await User.findAll() return{ 'template' : 'test.html', 'users' : users }