Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.321.597 Times

django-taggit-templatetags 0.2.1

Company: Julian Moritz
Date Added: August 11, 2013  |  Visits: 297

django-taggit-templatetags

Report Broken Link
Printer Friendly Version


Product Homepage
Download (39 downloads)



Just install django-taggit-templatetags via pip:<br /><br />$ pip install django-taggit-templatetags<br /><br />After installing and configuring django-taggit, just add taggit_templatetags to your INSTALLED_APPS in your settings.py:<br /><br />INSTALLED_APPS = (<br />...<br />'taggit_templatetags',<br />...<br />)<br /><br />Usage<br /><br />Now there are some templatetags enabled, at the moment only to create lists of tags and tag-clouds.<br /><br />In your templates, you need to load taggit_extras:<br /><br />...<br />{% load taggit_extras %}<br />...<br /><br />Taglists<br /><br />After loading taggit_extras you can create a list of tags for the whole project (in the sense of djangoproject), for an app (in the sense of djangoapp), for a model-class (to get a list for an instance of a model, just use its tag-field).<br /><br />For the tags of a project, just do:<br /><br />{% get_taglist as tags %}<br /><br />For the tags of an app, just do:<br /><br />{% get_taglist as tags for 'yourapp' %}<br /><br />For the tags of an model, just do:<br /><br />{% get_taglist as tags for 'yourapp.yourmodel' %}<br /><br />No matter what you do, you have a list of tags in the tags template variable. You can now iterate over it:<br /><br /><ul><br />{% for tag in tags %}<br /><li>{{tag}} ({{tag.num_times}})</li><br />{% endfor %}<br /><ul><br /><br />As you can see, each tag has an attribute num_times which declares how many times it was used. The list of tags is sorted descending by num_times.<br />Inclusion-Tag<br /><br />For convenience, there's an inclusion-tag. It's used analogue. For example, for a taglist of a model, just do:<br /><br />{% include_taglist 'yourapp.yourmodel' %}<br /><br />Tagclouds<br /><br />A very popular way to navigate through tags is a tagcloud. This app provides some tags for that:<br /><br />{% get_tagcloud as tags %}<br /><br />or:<br /><br />{% get_tagcloud as tags for 'yourapp' %}<br /><br />or:<br /><br />{% get_tagcloud as tags for 'yourapp.yourmodel' %}<br /><br />respectivly. The resulting list of tags is ordered by their name attribute. Besides the num_items attribute, there's a weight attribute. Its maximum and minimum may be specified as the settings section reads.<br />Inclusion-Tag<br /><br />Even for the tagcloud there's an inclusion-tag. For example, for a tagcloud of a model, just do:<br /><br />{% include_tagcloud 'yourapp.yourmodel' %}<br /><br />Settings<br /><br />There are a few settings to be set:<br />TAGGIT_TAGCLOUD_MIN (default: 1.0)<br /> This specifies the minimum of the weight attribute of a tagcloud's tags.<br />TAGGIT_TAGCLOUD_MAX (default: 6.0)<br /> This specifies the maximum of the weight attribute of a tagcloud's tags.<br /><br />If you want to use the weight as font-sizes, just do as follows:<br /><br /><font size={{tag.weight|floatformat:0}}>{{tag}}</font><br /><br />So the weights are converted to integer values.

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Attribute Django Django Taggit Inclusiontag Install Maximum Minimum Model Project Sense Settings Specifies Tagcloud Taggit Taggit Extras Taggit Templatetags Taglist Templatetags There039s Weight Yourapp Yourappyourmodel
Users rating: 0/10

License: Freeware Size: 30.72 KB
USER REVIEWS
More Reviews or Write Review


DJANGO-TAGGIT-TEMPLATETAGS RELATED
Network & Internet  -  django-export 0.0.4
django-export allows you to export model objects in a wide range of serialized formats (JSON, CSV, XML, YAML). Exports can be filtered and ordered on any of the particular model's fields. django-export utilizes django-object-tools to...
10.24 KB  
Network & Internet  -  django-classbasedsettings 0.1.2
This project allows you to define your Django project's settings using classes instead of modules. Among other things, this allows you to use inheritance and calculated properties.
10.24 KB  
Network & Internet  -  django_evolution 0.6.7
When you run ./manage.py syncdb, Django will look for any new models that have been defined, and add a database table to represent those new models. However, if you make a change to an existing model, ./manage.py syncdb will not make any changes...
61.44 KB  
Development Tools  -  Maximum(minimum) Weight Spanning Tree ( Directed ) 1.0
We use the idea of Chu-Liu/Edmonds Algorithm, see paper [1,2], to implement four functions here.1. Maximal Directed Maximum Spanning Tree By DirectedMaximumSpanningTree.m2. Minimal Directed Maximum Spanning Tree By DirectedMinimalSpanningTree.m3....
10 KB  
Network & Internet  -  django-tablib 2.2.2
django-tablib is a helper library for Django that allows Django models to be used to generate tablib datasets with introspection of the fields on the models if no headers are provided. If headers are provided they can reference any attribute,...
10.24 KB  
Network & Internet  -  django-news 0.2.4
RSS feed aggregation with Django, including support for infinite-depth categorization and per-category keyword whitelists. To install, run the following command inside this directory: python setup.py install Or if you'd prefer you...
10.24 KB  
Network & Internet  -  django-immutablefield 0.1.1
django-immutablefield is inspired by a Google search that didn't turn up a reusable solution for making fields immutable inside of a Django model. Installing One of the following: Via the ole' standby:
10.24 KB  
Network & Internet  -  django-email-extras 0.1.8
django-email-extras is a Django reusable app providing the ability to send PGP encrypted and multipart emails using the Django templating system. These features can be used together or separately. When configured to send PGP encrypted email, the...
10.24 KB  
HTML Utilities  -  django-secretballot 0.2.3
django-secretballot Django voting application that allows voting without a logged in user. Provides abstract base model for types that the user wishes to allow voting on as well as related utilities including generic views to...
10.24 KB  
Programming  -  django-netcash 0.4.0
A pluggable Django application for integrating netcash.co.za payment system. Install $ pip install django-netcash or $ easy_install django-netcash or $ hg clone...
10.24 KB  
NEW DOWNLOADS IN LINUX SOFTWARE, NETWORK & INTERNET
Linux Software  -  EasyEDA PCB Designer for Linux 2.0.0
EasyEDA, a great web based EDA(Electronics Design Automation) tool, online PCB tool, online PCB software for electronics engineers, educators, students, makers and enthusiasts. Theres no need to install any software. Just open EasyEDA in any...
34.4 MB  
Linux Software  -  wpCache® WordPress HTTP Cache 1.9
wpCache® is a high-performance, distributed object, caching system application, generic in nature, but intended for use in speeding up dynamic web applications, by decreasing database load time. wpCache® decreases dramatically the page...
3.51 MB  
Linux Software  -  Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad....
488 B  
Linux Software  -  Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video...
17.7 MB  
Linux Software  -  Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql.
47.5 KB  
Network & Internet  -  Free WiFi Hotspot 3.3.1
Free WiFi Hotspot is a super easy solution to turn your laptop or notebook into a portable Wi-Fi hotspot, wirelessly sharing your internet connections like DSL, Cable, Bluetooth, Mobile Broadband Card, Dial-Up, etc. through the built-in wireless...
1.04 MB  
Network & Internet  -  Easy Uploads 1.8
Easy uploads is a file storage media streaming application designed by Filestreamers that allows you to upload, store, and stream your files from their virtually unlimited file storage server. Easy Uploads can backup,share, and stream your files...
615.97 KB  
Network & Internet  -  PacketFence ZEN 3.1.0
PacketFence is a fully supported, trusted, Free and Open Source network access control (NAC) system. Boosting an impressive feature set including a captive-portal for registration and remediation, centralized wired and wireless management, 802.1X...
1024 MB  
Network & Internet  -  django-dbstorage 1.3
A Django file storage backend for files in the database.
10.24 KB  
Network & Internet  -  SQL Inject Me 0.4.5
SQL Inject Me is a Firefox extension used to test for SQL Injection vulnerabilities. The tool works by submitting your HTML forms and substituting the form value with strings that are representative of an SQL Injection attack.
133.12 KB