.
This commit is contained in:
+2
-2
@@ -1,7 +1,7 @@
|
|||||||
from django.urls import path, include
|
from django.urls import path, include
|
||||||
from . import views
|
from . import views
|
||||||
|
|
||||||
from django.views.decorators.cache import cache_page
|
from django.views.decorators.cache import cache_page, cache_control
|
||||||
|
|
||||||
|
|
||||||
app_name = "rapids"
|
app_name = "rapids"
|
||||||
@@ -11,7 +11,7 @@ urlpatterns = [
|
|||||||
path("", views.RapidExamViews.index, name="index"),
|
path("", views.RapidExamViews.index, name="index"),
|
||||||
path("author/<int:pk>/", views.author_detail, name="author_detail"),
|
path("author/<int:pk>/", views.author_detail, name="author_detail"),
|
||||||
path("author/", views.author_list, name="author_list"),
|
path("author/", views.author_list, name="author_list"),
|
||||||
path("question/", cache_page(60 * 1)(views.RapidView.as_view()), name="rapid_view"),
|
path("question/", cache_control(private=True)(cache_page(60 * 1)(views.RapidView.as_view())), name="rapid_view"),
|
||||||
# path("unchecked/", views.unchecked_list, name="unchecked_list"),
|
# path("unchecked/", views.unchecked_list, name="unchecked_list"),
|
||||||
# path("verified/<int:pk>/", views.verified_detail, name="verified_detail"),
|
# path("verified/<int:pk>/", views.verified_detail, name="verified_detail"),
|
||||||
path(
|
path(
|
||||||
|
|||||||
Reference in New Issue
Block a user