title: How to Create a Unique One Time Reset Password Link in Django?
body: <p>I have <strong>Django</strong> website which users can register and login with their phone number.
  Recently I decide to add a <strong>recover password with phone number</strong> part to my site,I read <a href="https://docs.djangoproject.com/en/2.2/topics/auth/default/#module-django.contrib.auth.views" rel="nofollow noreferrer">Authentication Views in Django</a> which users can reset their password by sending them an email but first of all it use email to reset password and second it use django built-in views, but I want a function in my view which generate a unique one time reset password link then I send this link to them with my sms api so they can reset their password using this link.
  So how can I generate reset password link in a secure way?
  the only idea that I've got is to implement a model which store a random string with OnetoOne relation and use it as a reset password link.  </p>