A fork of http://code.google.com/p/django-tagging-autocomplete/
-
You need to have django-tagging already installed
-
Download django-tagging-autocomplete and use setup.py to install it on your system: python setup.py install
-
Add "tagging_autocomplete" to installed apps in your project's settings.
-
Add the following line to your project's urls.py file:
(r'^tagging_autocomplete/', include('tagging_autocomplete.urls')),
You can use TagAutocompleteField to enable autocompletion right in your models.py file. In most cases this is the easiest solution. Example:
from django.db import models from tagging_autocomplete.models import TagAutocompleteField
class SomeModel(models.Model): tags = TagAutocompleteField()
Alternatively you can use the TagAutocomplete form widget while creating your form. For example:
from django import forms from tagging.forms import TagField from tagging_autocomplete.widgets import TagAutocomplete
class SomeForm(forms.Form): tags = TagField(widget=TagAutocomplete())
You can set JQUERY_URL in your settings file to use a different jquery version than the one included