add a snippet code from django-rest-framework documentation for auto-generating user tokens.