Python, Django, Django Rest Framework, Backend, Programming.
max_otp_try user_.is_passenger = True user_.save() send_otp(user_.phone, otp, user_) return Response("Successfully generated OTP", status=status.HTTP_200_OK) else: return Response("Phone number is incorrect", status=status.HTTP_401_UNAUTHORIZED) VerifyOTPView The VerifyOTPView handles OTP