from django.urls import path from .views import MyProtectedView urlpatterns = [ path('', MyProtectedView.as_view(), name='protected-view'), ]