from django.urls import include, path from drf_spectacular.views import SpectacularAPIView, SpectacularSwaggerView urlpatterns = [ path('', include('snippets.urls')), path('api-auth/', include('rest_framework.urls', namespace='rest_framework')), path('schema/', SpectacularAPIView.as_view(), name='schema'), path('docs/', SpectacularSwaggerView.as_view(url_name='schema')) ]