summaryrefslogtreecommitdiff
path: root/retro/views.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-03-24 13:08:39 -0500
committerDan McGee <dan@archlinux.org>2012-03-24 13:08:39 -0500
commit99a0e1bc76295243026ffbd41af10d62787b9ec0 (patch)
treed4abc16370130c14a2a5c1423da8080a82c87fbe /retro/views.py
parent965351e85b25d83c193fcf68e42947b3b22a6b8f (diff)
Convert retro pages to use {% retro_static %} template tag
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'retro/views.py')
-rw-r--r--retro/views.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/retro/views.py b/retro/views.py
index 5ce6d19d..3bc59e9f 100644
--- a/retro/views.py
+++ b/retro/views.py
@@ -1,4 +1,3 @@
-from django.conf import settings
from django.http import Http404
from django.views.decorators.cache import cache_page
from django.views.generic.simple import direct_to_template
@@ -24,9 +23,8 @@ def retro_homepage(request, year):
template = RETRO_YEAR_MAP.get(year, None)
if template is None:
raise Http404
- static_url = '%s%d/' % (settings.STATIC_URL, year)
context = {
- 'RETRO_STATIC_URL': static_url,
+ 'year': year,
}
return direct_to_template(request, 'retro/%s' % template, context)