I am a newbie for the aiohttp, and I have a question below,
First, I have a button in the page as below,
<body>
<button class="button" name="click_me" onclick="click_me">Click Me</button>
</body>
and in the python code, I define the function as below,
async def click_me(request):
logger.info(f'test on click_me')
async def handler(request):
... ... default code here ... ...
However, when I open the browser and click the "click_me" button, the debugging page shows the error,
Uncaught ReferenceError: click_me is not defined at HTMLButtonElement.onclick
How to define the function in the python script to catch click_me event?