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
File details
Details for the file django-tagging-autocomplete-0.4.2.tar.gz
.
File metadata
- Download URL: django-tagging-autocomplete-0.4.2.tar.gz
- Upload date:
- Size: 52.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b10c1e8ec896970dee80aea65e0d34a5f6b5c2c0e3f6ba3a80432f5668dd6d39 |
|
MD5 | 774e0e3e78e38e0f5344fb302ea0f88b |
|
BLAKE2b-256 | 783e28357a7b9172a66e0a43386221c92903fe843ae813ee5ad11ac6042ba930 |