Autocompletion for django-tagging
Project description
django-tagging-autocomplete is a jquery based autocomplete solution for django-tagging.
Requirements
django-tagging
Setup
Download package and install, for example using pip:
pip install django-tagging-autocomplete
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')),
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
Close
Hashes for django-tagging-autocomplete-0.4.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19d008b511d2ab234c1f604d89ba209646beff3d5a33ce60944353f81726c16c |
|
MD5 | 7148ecbc5927147832156c0b2613e51e |
|
BLAKE2b-256 | 689d8178d94e8b444a02609080b2fc6f5362aeb850debfc992c5d0bc35731f03 |