From da2751757bc8b6638b6dd6af35d961f05957a105 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 26 Oct 2012 11:22:21 -0400 Subject: mirror changes from commit '943ef2e8e4' --- main/templatetags/cdn.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'main/templatetags') diff --git a/main/templatetags/cdn.py b/main/templatetags/cdn.py index 5cb12fcf..b91553ed 100644 --- a/main/templatetags/cdn.py +++ b/main/templatetags/cdn.py @@ -11,7 +11,8 @@ def jquery(): link = 'https://ajax.googleapis.com/ajax/libs/jquery/' \ '%s/jquery.min.js' % version else: - link = '/media/jquery-%s.min.js' % version + static_url = getattr(settings, 'STATIC_URL', '/static/') + link = '%sjquery-%s.min.js' % (static_url, version) return '' % link @register.tag -- cgit v1.2.3-2-g168b