using oauth in django code example Example: django-oauth pip install django-oauth-toolkit djangorestframework