📅  最后修改于: 2022-03-11 14:58:20.403000             🧑  作者: Mango
This error comes when You are trying to get username, passwords from the form. In Login, You are using - > request. POST['username'] which will raise a KeyError exception if 'username' is not in request.