Skip to content

Latest commit

 

History

History
66 lines (40 loc) · 1.59 KB

README.md

File metadata and controls

66 lines (40 loc) · 1.59 KB

django-taggit-jquery-tag-it

About

This is a fork of django-taggit-autocomplete, which is in turn a fork of django-tagging-autocomplete.

They can be found in:

This fork make uses of Tag-it! a jQuery UI plugin:

It enhances django-taggit by adding autocompletion and a nicer UI:

This app works also works with django-taggit-hvad, see:

Installation

  1. We recomend using pip and virtualenv:

    pip install -e [email protected]:rasca/django-taggit-jquery-tag-it.git#egg=django-taggit-autocomplete

  2. Add 'tagging_autocomplete' to INSTALLED_APPS in your project's settings.py file:

    INSTALLED_APPS = (

    'tagging',
    'tagging_autocomplete',

    # ...

  3. Add the following line in you project's urls.py file:

    (r'^taggit_autocomplete/', include('taggit_autocomplete.urls')),

  4. You should provide jQuery and jQuery UI (and a theme). If they aren't available in the current context, set TAGGIT_AUTOCOMPLETE_CSS and TAGGIT_AUTOCOMPLETE_JS in your settings file. Both settings must be lists.

  5. Enjoy

Usage

The easiest solution is to user our subclass of taggit.managers.TaggableManager in the tagged models.

Example:

from django.db import models
from taggit_autocomplete.managers import TaggableManager

class SomeModel(models.Model):
    tags = TaggableManager()