Commit ec35b6d8 authored by Daniel W Bond's avatar Daniel W Bond
Browse files

still playing around with cacheing...

 think this will be the last one
parent 7cab4bcf
......@@ -6,8 +6,8 @@ from .views import DetailStudent, StudentRatings
urlpatterns = patterns('',
url(r'^(?P<slug>[\w-]+)/$',
cache_page(60 * 5)(DetailStudent.as_view()), name='profile'),
cache_page(60 * 2)(DetailStudent.as_view()), name='profile'),
url(r'^(?P<slug>[\w-]+)/ratings/$',
cache_page(60 * 5)(StudentRatings.as_view()), name='ratings'),
cache_page(60 * 2)(StudentRatings.as_view()), name='ratings'),
)
......@@ -10,7 +10,7 @@ urlpatterns = patterns('',
CreateLookout.as_view(), name='create_lookout'),
url(r'^(?P<slug>[\w-]+)/$',
cache_page(60 * 5)(DetailLookout.as_view()), name='detail_lookout'),
cache_page(60 * 2)(DetailLookout.as_view()), name='detail_lookout'),
url(r'^(?P<slug>[\w-]+)/delete/$',
DeleteLookout.as_view(), name='delete_lookout'),
......
......@@ -31,9 +31,11 @@ urlpatterns = patterns('',
url(r'^charts/?$', cache_page(60 * 10)(ChartsView.as_view()), name='charts'),
# static pages
url(r'^about/?$', TemplateView.as_view(template_name='about.html'),
url(r'^about/?$',
cache_page(60 * 15)(TemplateView.as_view(template_name='about.html')),
name='about'),
url(r'^privacy/?$', TemplateView.as_view(template_name='privacy.html'),
url(r'^privacy/?$',
cache_page(60 * 15)(TemplateView.as_view(template_name='privacy.html')),
name='privacy'),
# user authentication
......
......@@ -10,19 +10,19 @@ from .views import ListListings, CreateListing, ListingPage,\
urlpatterns = patterns('',
url(r'^all/$',
cache_page(60 * 5)(ListListings.as_view()), name='list_listings'),
cache_page(60 * 2)(ListListings.as_view()), name='list_listings'),
url(r'^new/$',
CreateListing.as_view(), name='create_listing'),
url(r'^listing/(?P<slug>[\w-]+)/$',
ListingPage.as_view(), name='detail_listing'),
cache_page(30)(ListingPage.as_view()), name='detail_listing'),
url(r'^listing/(?P<listing_slug>[\w-]+)/bid/(?P<slug>[\w-]+)/$',
EditBid.as_view(), name='edit_bid'),
url(r'^listing/(?P<slug>[\w-]+)/flag/$',
cache_page(60 * 5)(CreateFlag.as_view()), name='create_flag'),
CreateFlag.as_view(), name='create_flag'),
url(r'^listing/(?P<listing_slug>[\w-]+)/flag/(?P<slug>[\w-]+)/remove/$',
DeleteFlag.as_view(), name='delete_flag'),
......
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