Skip to main content

Django Models Extensions

Project description

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.6.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

django_models_ext-1.1.6-py2.py3-none-any.whl (5.0 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

File hashes

Hashes for django-models-ext-1.1.6.tar.gz
Algorithm Hash digest
SHA256 b87f708b1c4beae76212ca4c034f9517913026b1afa950e54e52dd1b11f655f2
MD5 d30dbe3c703957f3690e4ea5012ec40f
BLAKE2b-256 c313fe6138d89f7138f4e26ee55c37434df93427ce5f82f76c66feb400cdcebb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_models_ext-1.1.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a0d7ba90172b30e45f61eacf4afa85b8e79ef5cf6cef48ece05b36e55befabac
MD5 3329f564e74b2d6a9e88a3952e3445b9
BLAKE2b-256 f5fb6bb2f15058d615806536ff8325ebe301b3942e19fc603f869460e321a671

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