So I installed django-rest-swagger as shown in django rest documentation.
And on
from django.conf.urls import url
from rest_framework_swagger.views import get_swagger_view
schema_view = get_swagger_view(title='Pastebin API')
urlpatterns = [
url(r'^$', schema_view)
]
I keep on getting following error,
File ".../local/lib/python2.7/site-packages/django_filters/rest_framework/backends.py", line 97, in get_schema_fields assert compat.coreapi is not None, 'coreapi must be installed to use
get_schema_fields()
' AssertionError: coreapi must be installed to useget_schema_fields()
I have the following packages installed:
EDIT:
Installed Apps :
try installing coreapi, this worked for me
pip install coreapi pyyaml
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With