{ "info": { "author": "Julian Moritz", "author_email": "jumo@gmx.de", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python" ], "description": "============\nInstructions\n============\n\nThis is a reusable django app which adds some templatetags to django-taggit_.\n\nInstallation\n============\n\nJust install ``django-taggit-templatetags`` via ``pip``::\n\n $ pip install django-taggit-templatetags\n \nAfter installing and configuring django-taggit_, just add ``taggit_templatetags`` to your ``INSTALLED_APPS`` in your ``settings.py``::\n\n INSTALLED_APPS = (\n ...\n 'taggit_templatetags',\n ...\n )\n \nUsage\n=====\n\nNow there are some templatetags enabled, at the moment only to create lists of tags and tag-clouds.\n\nIn your templates, you need to load ``taggit_extras``::\n\n ...\n {% load taggit_extras %}\n ... \n\n--------\nTaglists\n--------\n\nAfter 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).\n\nFor the tags of a project, just do::\n\n {% get_taglist as tags %}\n \nFor the tags of an app, just do::\n\n {% get_taglist as tags for 'yourapp' %}\n \nFor the tags of an model, just do::\n\n {% get_taglist as tags for 'yourapp.yourmodel' %}\n \nNo matter what you do, you have a list of tags in the ``tags`` template variable. You can now iterate over it::\n\n