From 5cef3f80baa913c0c2263d2d9e751546b3a72c94 Mon Sep 17 00:00:00 2001 From: Zygmunt Krynicki Date: Mon, 13 Jun 2011 14:49:23 +0200 Subject: [PATCH 1/1] Fix tests on django 1.2 On django 1.2 STATIC_URL is not available by default --- linaro_django_pagination/templatetags/pagination_tags.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100755 => 100644 linaro_django_pagination/templatetags/pagination_tags.py diff --git a/linaro_django_pagination/templatetags/pagination_tags.py b/linaro_django_pagination/templatetags/pagination_tags.py old mode 100755 new mode 100644 index f4ddde7..a8f5e20 --- a/linaro_django_pagination/templatetags/pagination_tags.py +++ b/linaro_django_pagination/templatetags/pagination_tags.py @@ -252,7 +252,7 @@ def paginate(context, window=DEFAULT_WINDOW): pages.extend(differenced) to_return = { 'MEDIA_URL': settings.MEDIA_URL, - 'STATIC_URL': settings.STATIC_URL, + 'STATIC_URL': getattr(settings, "STATIC_URL", None), 'pages': pages, 'page_obj': page_obj, 'paginator': paginator, -- 2.20.1