Django-oauth2模块安装配置及使用client_credentials和password方式认证
1.安装模块#pipinstalldjango-oauth-toolkitdjangorestframework适配版本如下:Django=1.11.6django-oauth-toolkit=1.0.0djangorestframework=3.7.72.修改配置文件#vimsetting.py...INSTALLED_APPS=['django.contrib.admin','django.c