Discuss / Python / 哦 要先运行app.py 另外在写一个 handlers.py.

哦 要先运行app.py 另外在写一个 handlers.py.

Topic source

完美佩恩

#1 Created at ... [Delete] [Delete and Lock User]

add_routes(app,'handlers') 因为有这句。

handlers 里面 @get('/') async def index(request): users = await User.findAll() return{ 'template' : 'test.html', 'users' : users }

完美佩恩

#2 Created at ... [Delete] [Delete and Lock User]

一些引入要自己加啊。


  • 1

Reply