The most interesting package for managing real tokens is django-rest-knox which supports multiple tokens per user (and cancelling each token independently), as well as having support for token expiration and several other security mechanisms.
django-rest-knox
depends on cryptography
. You can find more information on how to install it at: http://james1345.github.io/django-rest-knox/installation/
pip install django-rest-knox
INSTALLED_APPS = (
...
'rest_framework',
'knox',
...
)
Apply migrations:
./manage.py migrate