You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import drf_yasg.generators raises following ImportError when the version of Django Rest Framework is 3.7.3.
/usr/lib/python3.6/site-packages/drf_yasg/generators.py in <module>()
7 from django.utils.encoding import force_text
8 from rest_framework import versioning
----> 9 from rest_framework.compat import URLPattern, URLResolver, get_original_route
10 from rest_framework.schemas.generators import EndpointEnumerator as _EndpointEnumerator
11 from rest_framework.schemas.generators import SchemaGenerator, endpoint_ordering
ImportError: cannot import name 'URLPattern'
To solve this, you must use DRF>=3.7.4.
The text was updated successfully, but these errors were encountered:
h-hirokawa
pushed a commit
to h-hirokawa/drf-yasg
that referenced
this issue
Jan 12, 2018
import drf_yasg.generators
raises followingImportError
when the version of Django Rest Framework is 3.7.3.To solve this, you must use DRF>=3.7.4.
The text was updated successfully, but these errors were encountered: