问题状况
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地址中不能包含停止符号$
posted on 2019-09-05 21:00 阅读( ...) 评论( ...) 收藏