Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Extends django-tagging and provides you with a form widget supporting javascript autocompletion of tags using jQueryUI's autocomplete
Python JavaScript
branch: master

This branch is 8 commits ahead of stevejalim:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
tagging_autocomplete
LICENSE.txt
README.txt
setup.py

README.txt

*** django-tagging-autocomplete ***

This Django reusable app extends djang-tagging and provides you with a form widget supporting javascript autocompletion of tags.
It is forked from http://code.google.com/p/django-tagging-autocomplete/

*** Instalation ***

   1. You need to have django-tagging already installed
   2. Download django-tagging-autocomplete and use setup.py to install it on your system, or reference it in your pip requirements file
   3. Download jquery-ui and include it in your templates. # TODO: automate this
   4. Copy the file "tagging_autocomplete.js" from django-tagging-autocomplete's media dir into the folder specified in your project's MEDIA_URL setting. If you want to put it somewhere else add TAGGING_AUTOCOMPLETE_JS_BASE_URL to your project settings.
   5. Add "tagging_autocomplete" to installed apps in your project's settings.
   6. Add the following line to your project's urls.py file:

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

*** Usage ***
** Using the model field **

You can use TagAutocompleteField to enable autocomplition 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()

** Using the form widget **

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())
Something went wrong with that request. Please try again.