Skip to main content

A suit of tools to use a FileField to upload image with light SVG support, include thumbnail preview in field and a template tag around sorl-thumbnail library.

Dependencies

Overview

Concretely this contains:

  • Form widgets to build HTML for a FileField either with or without clearable mode. Both mode have a version to include needed layout assets (CSS and Javascript) and another one without assets;

  • Form fields which already set a “smart” widget;

  • Templates to build the widgets HTML;

  • CSS and Javascript for the widget layout;

  • Field validator;

  • Model signals to purge stale files;

  • Model field with all “smart” features;

  • A template tag to make thumbnail safely with SVG image (original SVG is just used without Sorl raising issue for a non bitmap image);

  • Some helpers to ease some specific implementations;

Although this can work with ImageField, SVG support will only work with FileField since ImageField rely on PIL that does not support SVG format.

Metadata

Release files for django-smart-media 0.6.0

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-smart-media 0.6.0
File Size Uploaded Provenance Actions
django_smart_media-0.6.0.tar.gz 20.8 kB Without provenance Details for django_smart_media-0.6.0.tar.gz

Release files / django_smart_media-0.6.0.tar.gz

Download URL django_smart_media-0.6.0.tar.gz
Size 20.8 kB
Tags Source
SHA-256 checksum
How to use checksums
e4fddfb6249f7bd8e9721dc5489115cb11c2845a51214376063d4351d7454bf0
BLAKE2b-256 checksum
How to use checksums
593aedaf7c1634ff3763614aa196202c34ac6c35eb708660d7e53d1fc2e2f34e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.17

Security for django-smart-media 0.6.0

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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