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
Built Distribution
Close
Hashes for django_models_ext-1.1.11-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c1b31e9023462fe0837d2b4364ed52aa666627c4e3e534ccfdd9398f4925275 |
|
MD5 | 96301f964aed394388a94507ae351e9a |
|
BLAKE2b-256 | f8fb868ab6a005d7e3e615d5e8a833b034f19da665709d1bb6e26abf12b4e8c9 |