Answer the question
In order to leave comments, you need to log in
How to reach the POST method in CBV in aiohttp?
route
app.router.add_get('/upload', UploadView, name='upload')
class UploadView(web.View):
@aiohttp_jinja2.template('upload.html')
async def get(self):
return {}
async def post(self):
return {}
405: Method Not Allowed
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question