Skip to main content

Django Models Extensions

Project description

django-models-extensions

Django Models Extensions

Installation

pip install django-models-ext

Usage

from django_models_ext import BaseModelMixin, upload_path, upload_file_url

class MyModel(BaseModelMixin):
    upload = models.FileField(upload_to=upload_path)

    @property
    def upload_url(self):
        return upload_file_url(self.upload)

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-models-ext-1.1.11.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

django_models_ext-1.1.11-py2.py3-none-any.whl (5.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-models-ext-1.1.11.tar.gz.

File metadata

  • Download URL: django-models-ext-1.1.11.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for django-models-ext-1.1.11.tar.gz
Algorithm Hash digest
SHA256 ea6c2ed60eab656cd185b8319344c0de61fbb52fc3d6d064f2cd8d60a4beb405
MD5 33cf343404d4ea08d4a40b55fd801a91
BLAKE2b-256 953329562a1b2c4c3474871b23c29e3c1c7eda60a85e612d98ebc495611857dc

See more details on using hashes here.

File details

Details for the file django_models_ext-1.1.11-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_models_ext-1.1.11-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0c1b31e9023462fe0837d2b4364ed52aa666627c4e3e534ccfdd9398f4925275
MD5 96301f964aed394388a94507ae351e9a
BLAKE2b-256 f8fb868ab6a005d7e3e615d5e8a833b034f19da665709d1bb6e26abf12b4e8c9

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