Skip to main content

Django jQuery Tags Input is a Django field and widgetwrapper that uses `django-selectable for autocompletion

Project description

Overview

Django Tags Input is a module that gives you a modified version of the Xoxco jQuery Tags Input library within Django.

The result is a very pretty interface with tags and autocomplete which can optionally automatically create new items when they are missing.

How to install

Installing this module only takes a couple of minutes.

  1. Install the module itself

  1. Add ‘tags_input’ to your INSTALLED_APPS setting in the Django settings.py.

  2. Add the mappings to your settings.py file:

Example:

TAGS_INPUT_MAPPINGS = {
    'some_app.SomeKeyword': {
        'field': 'some_field',
    },
    'some_app.SomeOtherKeyword': {
        'fields': ('some_field', 'some_other_field'),
    },
    'some_app.SomeSortedKeyword': {
        'field': 'some_field',
        'ordering': [
            'some_field',
            'some_other_field',
        ],
    },
    'some_app.SomeCreateableKeyword': {
        'field': 'some_field',
        'create_missing': True,
    },
}

Admin usage

from django.contrib import admin
import models
from tags_input import admin as tags_input_admin

class YourAdmin(tags_input_admin.TagsInputAdmin):
    pass

admin.site.register(models.YourModel, YourAdmin)

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-tags-input-1.5.tar.gz (113.4 kB view details)

Uploaded Source

File details

Details for the file django-tags-input-1.5.tar.gz.

File metadata

File hashes

Hashes for django-tags-input-1.5.tar.gz
Algorithm Hash digest
SHA256 f7daf239a867238407f74beca0a51b8e8a4d33b28db3671a1d9fa1acc34f8175
MD5 6141fdaa5155d24aa0e49a28d84e62e7
BLAKE2b-256 2c0338171df429a3ef4c7cfaba578d5eee75af54523a724354a9f82e3ce58375

See more details on using hashes here.

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