访问 django rest framework api 文档( /api/docs/ )时报错:
AttributeError: 'AutoSchema' object has no attribute 'get_link'
settings.py 的 REST_FRAMEWORK 配置增加:
'DEFAULT_SCHEMA_CLASS': 'rest_framework.schemas.AutoSchema',
# drf 配置
REST_FRAMEWORK = {
# AttributeError: 'AutoSchema' object has no attribute 'get_link'
'DEFAULT_SCHEMA_CLASS': 'rest_framework.schemas.AutoSchema'
}