This currently provides a tag cloud generator for django-taggit.
Optional settings
- TAGTOOLS_CLOUD_STEPS
How many different sizes of tags for the cloud. Default: 6
- TAGTOOLS_CLOUD_MIN_COUNT
Minimum frequency of a tag before it is included. Default: 1
Usage
There’s a view tagged_object_list if you want to devote an entire page to a tag-cloud. In your url-conf:
tags_dict= {
'queryset_or_model': YourTaggedModel,
'template_name': 'sometemplate.html',
}
urlpatterns = patterns('tagtools.views',
(r'^tag/(?P<tag>[-\w\d]+)/$', 'tagged_object_list', tags_dict),
)
You can generate lists of tags in a view with the function tagtools.get_tagcloud_for_model.
You can set tags for a model with tagtools.set_tags_for_model.
- Version:
0.4.0
Metadata
Release files for django-tag-tools 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django_tag_tools-0.4.0.tar.gz | 5.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_tag_tools-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.0 kB
Release files / django_tag_tools-0.4.0.tar.gz
| Download URL | django_tag_tools-0.4.0.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e931d3837d30c344a62a527ba5510ea475a76a20e20ad745b89d0f9ef8faec23
|
|
BLAKE2b-256 checksum How to use checksums |
89a6f634067a1309fb96b4c13a55d42546ae881a50b9f7f7e894b0b5426cc655
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / django_tag_tools-0.4.0-py3-none-any.whl
| Download URL | django_tag_tools-0.4.0-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
75cc4b213b795fa0dcac06ad9c40cf587931d0ed9a4b23b5c9dbfb5effce2514
|
|
BLAKE2b-256 checksum How to use checksums |
b1783cfb7e4a5d7b532c1a98c4a0815f8ee55b4d6c6745d13c1d69678f2998ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|