Skip to main content

Django Models Extensions

Project description

Django Models Extensions

Installation

pip install django-models-ext

Usage

from 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.0.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

django_models_ext-1.1.0-py2.py3-none-any.whl (4.0 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

File hashes

Hashes for django-models-ext-1.1.0.tar.gz
Algorithm Hash digest
SHA256 349f14ec53d59fc4da24aecf9c1768e91834bd5c2562fccb60d2b9d4665dd331
MD5 bc37ee0141cec0738e0eac872dea3319
BLAKE2b-256 d71657d319c32bb55c887b96fd7b4ed98bc4fe1a7ff95be0d0380e7616a6d4f4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_models_ext-1.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2899a2f04449edf297d37bce5127648ad31b970910d1a8dc9956b9fe31ab2f2f
MD5 b2964c31251ca754a8b9643a2e716a2d
BLAKE2b-256 71db5f2f44ae2d8a561589d337046095d2d864fb973646634a5037507b2f91ce

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