Skip to main content

Django Dynamic Image

Description

A django ImageField whose upload_to value is generated from a model method.

Installation

pip install django-dynamic-image

Usage

from django.db import models
from dynamic_image.fields import DynamicImageField

class ExampleModel(models.Model):
    name = models.CharField(max_length=56)
    image = DynamicImageField()

    def get_upload_to(self, field_name):
        class_name = self.__class__.__name__.lower()
        instance_name = self.name
        return "{}/{}".format(class_name, instance_name)

Metadata

Release files for django-dynamic-image 1.4.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-dynamic-image 1.4.0
File Size Uploaded Provenance Actions
django-dynamic-image-1.4.0.tar.gz 4.9 kB Without provenance Details for django-dynamic-image-1.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-dynamic-image 1.4.0
File Interpreter ABI Platform Actions
django_dynamic_image-1.4.0-py3-none-any.whl Python 3 none any Details for django_dynamic_image-1.4.0-py3-none-any.whl

Total release size: 11.5 kB

Release files / django-dynamic-image-1.4.0.tar.gz

Download URL django-dynamic-image-1.4.0.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
2665265b3d7af6620bd832c6ceae63ac52deab2634cdd47091738acc9a04efc1
BLAKE2b-256 checksum
How to use checksums
db292d711439526cf4e3996dc6c5c1ee13d50679f03e702f61be33647687756e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

Release files / django_dynamic_image-1.4.0-py3-none-any.whl

Download URL django_dynamic_image-1.4.0-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
425b9e88852dee02b3416610a253804d51c26bc1e9d0983c8aa44e0abff3adae
BLAKE2b-256 checksum
How to use checksums
c3efb9a630a0ec8067b945fa930dca49d37e3b193bfeffb8892f074fee2a03c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

Security for django-dynamic-image 1.4.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