AttributeError: 'AutoSchema' object has no attribute 'get_link'


Download the latest version of restframework (3.10.1)
so the new version of restframework need to specify the default schema.
You need to add the following code in settings.py
  

 REST_FRAMEWORK = {
'DEFAULT_SCHEMA_CLASS': 'rest_framework.schemas.coreapi.AutoSchema'
}

Guess you like

Origin www.cnblogs.com/ljfl/p/12120498.html