Skip to main content

django-tagify

A django tag input field using Tagify built for Django 2.0. The tags are stored as a comma-delimited (unless if changed) String.

Usage

  1. Models: Use TagsField to represent a tags field.

  2. Forms: Make sure you display form.media in the html template, for the widget to render correctly.

  3. Widget settings: Pass the settings dictionary as follows TagsField(widget_settings={...}.

  • You can specify if ‘duplicates’ are allowed (boolean).

  • You can specify ‘autocomplete’ (boolean) - this matches from the whitelist.

  • You can specify ‘enforceWhitelist’ (boolean).

  • You can specify ‘maxTags’ (int).

  • You can specify the ‘whitelist’ (list containing strings).

  • You can specify the ‘blacklist’ (list containing strings).

  • You can specify the ‘delimiter’ (string).

  • You can specify the RegEx ‘pattern’ to validate the input (string).

If you want to allow blank inputs for tags make sure you set blank=True on TagsField. If blank inputs are allowed, they will not be filtered by the whitelist.

Note: If you use TagsField in a Form, then Form.is_valid() will automatically verify that its values conform to those specify in its settings, to prevent malicious behaviour from end users.

Installation

  1. Install the module

pip install django-tagify
  1. Add django_tagify to your INSTALLED_APPS setting in the Django settings.py.

    Example:

    INSTALLED_APPS = (
        # ...other installed apps
        'django_tagify',
    )

Metadata

Release files for django-tagify 0.20

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-tagify 0.20
File Size Uploaded Provenance
django-tagify-0.20.tar.gz 19.2 kB Without provenance Details

Release files / django-tagify-0.20.tar.gz

Download URL django-tagify-0.20.tar.gz
Size 19.2 kB
Tags Source
SHA-256 checksum
How to use checksums
8d7c58be3789a19eae67c2f9d5788c442269ed79419c2fdf918d359cfef97c7d
BLAKE2b-256 checksum
How to use checksums
c20b4507f03e6b2f4a6611d64e157fc4c35860955c2b0ac4df5dd9652a8391d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-tagify 0.20

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.20 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page