From 024fd1b2843d2abd0094faedfbc49e1d1a21edd0 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sat, 24 Mar 2012 12:32:38 -0500 Subject: Remove cdnprefix template tag Signed-off-by: Dan McGee --- local_settings.py.example | 2 -- main/templatetags/cdn.py | 12 ------------ 2 files changed, 14 deletions(-) diff --git a/local_settings.py.example b/local_settings.py.example index 30a67d51..37ac29a6 100644 --- a/local_settings.py.example +++ b/local_settings.py.example @@ -53,7 +53,5 @@ SECRET_KEY = '00000000000000000000000000000000000000000000000' ## CDN settings CDN_ENABLED = False -# Scheme-relative URL, should work for both http/https -CDN_PATH = '//example.com/path/' # vim: set ts=4 sw=4 et: diff --git a/main/templatetags/cdn.py b/main/templatetags/cdn.py index b91553ed..f290a524 100644 --- a/main/templatetags/cdn.py +++ b/main/templatetags/cdn.py @@ -15,16 +15,4 @@ def jquery(): link = '%sjquery-%s.min.js' % (static_url, version) return '' % link -@register.tag -def cdnprefix(parser, token): - return CDNPrefixNode() - -class CDNPrefixNode(template.Node): - def render(self, context): - oncdn = getattr(settings, 'CDN_ENABLED', True) - if not oncdn: - return '' - # if left undefined, same behavior as if CDN is turned off - return getattr(settings, 'CDN_PATH', '') - # vim: set ts=4 sw=4 et: -- cgit v1.2.3-54-g00ecf