Add keyword and regular expression "suggestions" for tags.
Fetching latest commit…
Cannot retrieve the latest commit at this time
|taggit_suggest||Moved model reference to taggit_suggest.models|
|AUTHORS.txt||Adding Alex to contributors|
|LICENSE.txt||Moving taggit.contrib.suggest to taggit_suggest|
|README.txt||Moving taggit.contrib.suggest to taggit_suggest|
|runtests.py||Moving taggit.contrib.suggest to taggit_suggest|
|setup.py||Style fix for quotes.|
taggit_suggest ====================== This add on module allows you to easily associate keywords and regular expressions with a Tag object. This is useful to help keep your database from getting filled up with several similar tags that really represent the same thing or concept. For example, if your site is a humor site you might want to collapse all of #fun, #funny, #funnies, #hilarious, #rofl, and #lol into one tag #funny. The ``suggest_tags()`` function in ``taggit_suggest.utils`` will give you a list of tags that seem appropriate for the text content given to it. Unlike the rest of ``django-taggit``, ``taggit_suggest`` requires Django 1.2. Usage ===== Put ``'taggit_suggest'`` into ``INSTALLED_APPS`` and run a syncdb to create the necessary models. This will add ``Keywords`` and ``Regular Expression`` inlines to the default ``django-taggit`` admin. Once you've populated those based on your site you can do a simple: .. sourcecode:: python from taggit_suggest.utils import suggest_tags tags = suggest_tags(content='Some textual content...') TODO ==== * In a later version I hope to a simple way to help determine keywords for you automatically, by learning from your past tags and content.