Skip to main content

Autocompletion for django-tagging

Project description

* 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:

    python setup.py install

  3. Download jquery-autocomplete and put it in 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.

  4. Add “tagging_autocomplete” to installed apps in your project’s settings.

  5. 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())

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.3.1.tar.gz (3.4 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for django-tagging-autocomplete-0.3.1.tar.gz
Algorithm Hash digest
SHA256 8bada3a483d4d49dbd2f090a7e2c1680b8cea2157442e3c48ebdc89000c54d66
MD5 b35b0371ba87aca6ce5368abb742dfa2
BLAKE2b-256 ebd71a6456842c750afc80475b92d7f4096fd8aa3b7850c892279e60657e8f6b

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