We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eaf4954 commit 16d8c63Copy full SHA for 16d8c63
pythonkc_site/urls.py
@@ -4,14 +4,15 @@
4
from django.conf.urls.defaults import include
5
from django.conf.urls.defaults import patterns
6
from django.conf.urls.defaults import url
7
+from django.views.decorators.cache import cache_page
8
from pythonkc_site.views import PythonKCHome
9
10
# Uncomment the next two lines to enable the admin:
11
# from django.contrib import admin
12
# admin.autodiscover()
13
14
urlpatterns = patterns('',
- url(r'^/?$', PythonKCHome.as_view(), name='home'),
15
+ url(r'^/?$', cache_page(60 * 5)(PythonKCHome.as_view()), name='home'),
16
17
# Examples:
18
# url(r'^$', 'pythonkc_site.views.home', name='home'),
0 commit comments