Django-verification-token is a library which extends django with model and manager for generation verification tokens which can be used for user verification wia SMS or e-mail.
https://github.com/druids/django-verification-token
https://django-verification-token.readthedocs.org/en/latest