urls.py 369 B

12345678910111213
  1. from django.urls import path
  2. from django.views.decorators.cache import cache_page
  3. from django.views.decorators.vary import vary_on_cookie
  4. from .views import StatusPageDetailView
  5. urlpatterns = [
  6. path(
  7. "status-pages/<organization>/<slug>/",
  8. cache_page(60)(vary_on_cookie(StatusPageDetailView.as_view())),
  9. name="status-page-detail",
  10. ),
  11. ]