问题状况
1 'AutoSchema' object has no attribute 'get_link'
1 REST_FRAMEWORK = { 2 'DEFAULT_SCHEMA_CLASS': 'rest_framework.schemas.AutoSchema' 3 }
错误代码二
1 Reverse for 'schema-js' with no arguments not found. 1 pattern(s) tried: ['doc/$schema.js$']
解决方法:
1 re_path(r"^doc/", include_docs_urls(title="doc"))
问题原因是url地址中不能包含停止符号$