Skip to content

Instantly share code, notes, and snippets.

@WillianFuks
Created June 30, 2021 00:33
Show Gist options
  • Select an option

  • Save WillianFuks/229324870cd2b9d85728090c0bce0cc3 to your computer and use it in GitHub Desktop.

Select an option

Save WillianFuks/229324870cd2b9d85728090c0bce0cc3 to your computer and use it in GitHub Desktop.
# ./testapp/urls.py
from django.urls import path
from .views import ProtectedView, PermsProtectedView
urlpatterns = [
path('protect/', ProtectedView.as_view(), name='protect'),
path('perms_protect/', PermsProtectedView.as_view(), name='perms_protect')
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment