Commit 430bbb67 authored by Daniel W Bond's avatar Daniel W Bond

added back cacheing equivalent to the rate throttling

parent 9bfa6970
# core django imports
from django.conf.urls import patterns, url
from django.views.decorators.cache import cache_page
# imports from your apps
from .views import DetailStudent, StudentRatings, UpdateStudent
......@@ -8,8 +9,8 @@ urlpatterns = patterns('',
UpdateStudent.as_view(), name='name_change'),
url(r'^(?P<slug>[\w-]+)/$',
DetailStudent.as_view(), name='profile'),
cache_page(12)(DetailStudent.as_view()), name='profile'),
url(r'^(?P<slug>[\w-]+)/ratings/$',
StudentRatings.as_view(), name='ratings'),
cache_page(12)(StudentRatings.as_view()), name='ratings'),
)
......@@ -16,7 +16,7 @@ urlpatterns = patterns('',
CreateListing.as_view(), name='create_listing'),
url(r'^listing/(?P<slug>[\w-]+)/$',
ListingPage.as_view(), name='detail_listing'),
cache_page(12)(ListingPage.as_view()), name='detail_listing'),
url(r'^listing/(?P<slug>[\w-]+)/delete/$',
DeleteListing.as_view(), name='delete_listing'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment