aboutsummaryrefslogtreecommitdiffstats
path: root/97suifangqa/apps/sciblog
diff options
context:
space:
mode:
authorAlvin Li <liweitianux@gmail.com>2013-08-14 00:05:31 +0800
committerAlvin Li <liweitianux@gmail.com>2013-08-14 00:05:31 +0800
commitbb095adf76bddc2f6c5925bcdebb52bff75e6578 (patch)
treec04b5ef145708e76eccc5b6e703c5742578ca4a8 /97suifangqa/apps/sciblog
parent87ed76dd20431eb2a4216f9356b6da417fe003ce (diff)
download97dev-bb095adf76bddc2f6c5925bcdebb52bff75e6578.tar.bz2
* added 'templates/search/search.html'
* updated haystack settings * updated 'static' files settings * added 'search function' for 'apps/indicator': IndicatorCategory, Indicator * merged static files of '97suifang-front' by 'mjymjydark' * merged pages of '97suifang-front' by 'mjymjydark' * updated pages to use 'django templates syntax' for the static links TODO: to fix the 'static links' of 'indicator/static/javascripts/*.js'
Diffstat (limited to '97suifangqa/apps/sciblog')
-rw-r--r--97suifangqa/apps/sciblog/templatetags/tools.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/97suifangqa/apps/sciblog/templatetags/tools.py b/97suifangqa/apps/sciblog/templatetags/tools.py
new file mode 100644
index 0000000..9ed90c2
--- /dev/null
+++ b/97suifangqa/apps/sciblog/templatetags/tools.py
@@ -0,0 +1,7 @@
+from django import template
+
+register = template.Library()
+@register.filter
+def get_range(count, start = 0):
+ return range(start, start + count)
+