This is a fork of django-taggit-autocomplete, which is in turn a fork of django-tagging-autocomplete.
They can be found in:
- http://code.google.com/p/django-tagging-autocomplete/
- https://github.com/Jaza/django-taggit-autocomplete
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:
-
We recomend using
pip
andvirtualenv
:pip install -e git+git@github.com:rasca/django-taggit-jquery-tag-it.git#egg=django-taggit-autocomplete
-
Add 'tagging_autocomplete' to INSTALLED_APPS in your project's
settings.py
file:INSTALLED_APPS = (
'tagging',
'tagging_autocomplete',# ...
-
Add the following line in you project's
urls.py
file:(r'^taggit_autocomplete/', include('taggit_autocomplete.urls')),
-
You should provide jQuery and jQuery UI (and a theme). If they aren't available in the current context, set
TAGGIT_AUTOCOMPLETE_CSS
andTAGGIT_AUTOCOMPLETE_JS
in your settings file. Both settings must be lists. -
Enjoy
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()