Skip to content

rasca/django-taggit-jquery-tag-it

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

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 git+git@github.com: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()

About

jQuery Tag-it for django-taggit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 72.7%
  • Python 21.4%
  • CSS 5.9%