Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jean Michel Rouly
bookshare
Commits
ec35b6d8
Commit
ec35b6d8
authored
Apr 21, 2015
by
Daniel W Bond
Browse files
still playing around with cacheing...
think this will be the last one
parent
7cab4bcf
Changes
4
Hide whitespace changes
Inline
Side-by-side
bookshare/core/urls.py
View file @
ec35b6d8
...
...
@@ -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'
),
)
bookshare/lookouts/urls.py
View file @
ec35b6d8
...
...
@@ -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'
),
...
...
bookshare/settings/urls.py
View file @
ec35b6d8
...
...
@@ -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
...
...
bookshare/trades/urls.py
View file @
ec35b6d8
...
...
@@ -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'
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment