django-models-ext


Namedjango-models-ext JSON
Version 1.1.11 PyPI version JSON
download
home_pagehttps://github.com/django-xxx/django-models-extensions
SummaryDjango Models Extensions
upload_time2023-02-03 07:17:27
maintainer
docs_urlNone
authorHackathon
requires_python
license
keywords django models ext extensions
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # django-models-extensions
Django Models Extensions

## Installation
```shell
pip install django-models-ext
```

## Usage
```python
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)
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/django-xxx/django-models-extensions",
    "name": "django-models-ext",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "Django Models Ext Extensions",
    "author": "Hackathon",
    "author_email": "kimi.huang@brightcells.com",
    "download_url": "https://files.pythonhosted.org/packages/95/33/29562a1b2c4c3474871b23c29e3c1c7eda60a85e612d98ebc495611857dc/django-models-ext-1.1.11.tar.gz",
    "platform": null,
    "description": "# django-models-extensions\nDjango Models Extensions\n\n## Installation\n```shell\npip install django-models-ext\n```\n\n## Usage\n```python\nfrom django_models_ext import BaseModelMixin, upload_path, upload_file_url\n\nclass MyModel(BaseModelMixin):\n    upload = models.FileField(upload_to=upload_path)\n\n    @property\n    def upload_url(self):\n        return upload_file_url(self.upload)\n```\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Django Models Extensions",
    "version": "1.1.11",
    "split_keywords": [
        "django",
        "models",
        "ext",
        "extensions"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f8fb868ab6a005d7e3e615d5e8a833b034f19da665709d1bb6e26abf12b4e8c9",
                "md5": "96301f964aed394388a94507ae351e9a",
                "sha256": "0c1b31e9023462fe0837d2b4364ed52aa666627c4e3e534ccfdd9398f4925275"
            },
            "downloads": -1,
            "filename": "django_models_ext-1.1.11-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "96301f964aed394388a94507ae351e9a",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 5416,
            "upload_time": "2023-02-03T07:17:25",
            "upload_time_iso_8601": "2023-02-03T07:17:25.944879Z",
            "url": "https://files.pythonhosted.org/packages/f8/fb/868ab6a005d7e3e615d5e8a833b034f19da665709d1bb6e26abf12b4e8c9/django_models_ext-1.1.11-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "953329562a1b2c4c3474871b23c29e3c1c7eda60a85e612d98ebc495611857dc",
                "md5": "33cf343404d4ea08d4a40b55fd801a91",
                "sha256": "ea6c2ed60eab656cd185b8319344c0de61fbb52fc3d6d064f2cd8d60a4beb405"
            },
            "downloads": -1,
            "filename": "django-models-ext-1.1.11.tar.gz",
            "has_sig": false,
            "md5_digest": "33cf343404d4ea08d4a40b55fd801a91",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 4416,
            "upload_time": "2023-02-03T07:17:27",
            "upload_time_iso_8601": "2023-02-03T07:17:27.695633Z",
            "url": "https://files.pythonhosted.org/packages/95/33/29562a1b2c4c3474871b23c29e3c1c7eda60a85e612d98ebc495611857dc/django-models-ext-1.1.11.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-02-03 07:17:27",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "django-xxx",
    "github_project": "django-models-extensions",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "django-models-ext"
}
        
Elapsed time: 0.51821s