[Fixed]-Rest framework swagger 'AutoSchema' object has no attribute get_link

28👍

add below line in settings.py

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

8👍

djagno-rest-swagger is deprecated and suggests to use drf-yasg

0👍

use drf-yasg it is more useful than djagno-rest-swagger

0👍

When I add this to my seetings.py, works fine

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

Leave a comment