Skip to main content

Autocompletion for django-tagging

Project description

django-tagging-autocomplete is a jquery based autocomplete solution for django-tagging.

Requirements

  • django-tagging

Setup

  1. Download & Install:

    python setup.py install
  2. Add tagging_autocomplete to installed apps in your project’s settings.

  3. Add the following line to your project’s urls.py file:

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

Usage

The Model Field

You can use TagAutocompleteField() to enable autocompletion right in your models.py. In most cases this is the easiest solution:

from django.db import models
from tagging_autocomplete.models import TagAutocompleteField

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

The Form Widget

Alternatively you can use the TagAutocomplete() form widget while creating your form:

from django import forms
from tagging.forms import TagField
from tagging_autocomplete.widgets import TagAutocomplete

class SomeForm(forms.Form):
    tags = TagField(widget=TagAutocomplete())

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-tagging-autocomplete-0.4.tar.gz (51.7 kB view details)

Uploaded Source

File details

Details for the file django-tagging-autocomplete-0.4.tar.gz.

File metadata

File hashes

Hashes for django-tagging-autocomplete-0.4.tar.gz
Algorithm Hash digest
SHA256 5f40e7c6f2c76463b547ea0f5b7617374ed76348ffa28d04112f034cc456ba6a
MD5 5621ba98a458378d313977dbd106a63a
BLAKE2b-256 dcd93fd79323147bbf859eb15e57b8388fb454e909d96752ce897e37dd4fd275

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page