Проверка формы, возвращающая значение False в Django
#python #django #django-views #django-forms Вопрос: views.py def student_login(request): form = StudentLoginForm() if request.method == 'POST': form = StudentLoginForm(data=request.POST) print(form.is_valid()) if form.is_valid(): username = form.cleaned_data.get('username') password = form.cleaned_data.get('password') print(username) user =…