django restful swagger error 'AutoSchema' object has no attribute 'get_link'
settings.py
中没配置好,需添加配置
REST_FRAMEWORK = {
# ...
'DEFAULT_SCHEMA_CLASS': 'rest_framework.schemas.coreapi.AutoSchema'
# ...
}
settings.py
中没配置好,需添加配置
REST_FRAMEWORK = {
# ...
'DEFAULT_SCHEMA_CLASS': 'rest_framework.schemas.coreapi.AutoSchema'
# ...
}