https://ehsanshafi3i.github.io/posts/OTP-in-Django/
OTP in Django Without Saving it in the Database (Using Redis) - Cozy Bytes by Ehsan