Name | django-attachments-management JSON |
Version |
1.1.2
JSON |
| download |
home_page | |
Summary | Attachments management app for django |
upload_time | 2023-05-11 04:30:48 |
maintainer | |
docs_url | None |
author | |
requires_python | >=3.7 |
license | MIT |
keywords |
pylibmc
django
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
==================
Django attachments
==================
|version| |downloads| |license|
Django application to manage attached files to any django model.
Install
-------
.. code:: bash
pip install django_attachments_management
Configure
---------
Add `'django_attachments'` to `INSTALLED_APPS`.
Usage
-----
Add `GalleryField` or `LibraryField` to django model.
.. code:: python
from django.db import models
from django_attachments.fields import LibraryField, GalleryField
class Article(models.Model):
title = models.CharField(max_length=100)
attachments = LibraryField(related_name='articles_with_attachment', on_delete=models.CASCADE)
gallery = GalleryField(related_name='articles_with_gallery', on_delete=models.CASCADE)
Use `AttachmentsAdminMixin` to enable attachments in admin interface.
.. code:: python
from django.contrib import admin
from .models import Article
from django_attachments.admin import AttachmentsAdminMixin
class ArticleAdmin(AttachmentsAdminMixin, admin.ModelAdmin):
pass
admin.site.register(Article, ArticleAdmin)
Screenshots
-----------
.. image:: https://raw.github.com/wiki/mireq/django-attachments/django_attachments.png?v2022-12-11
.. |version| image:: https://badge.fury.io/py/django-attachments-management.svg
:target: https://pypi.python.org/pypi/django-attachments-management/
.. |downloads| image:: https://img.shields.io/pypi/dw/django-attachments-management.svg
:target: https://pypi.python.org/pypi/django-attachments-management/
.. |license| image:: https://img.shields.io/pypi/l/django-attachments-management.svg
:target: https://pypi.python.org/pypi/django-attachments-management/
Raw data
{
"_id": null,
"home_page": "",
"name": "django-attachments-management",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "pylibmc,django",
"author": "",
"author_email": "Miroslav Bend\u00edk <miroslav.bendik@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/09/4e/33743e28ce343afd419a5ac6274840ec73ee45563860b094019c774bb59c/django_attachments_management-1.1.2.tar.gz",
"platform": null,
"description": "==================\nDjango attachments\n==================\n\n|version| |downloads| |license|\n\nDjango application to manage attached files to any django model.\n\nInstall\n-------\n\n.. code:: bash\n\n\tpip install django_attachments_management\n\nConfigure\n---------\n\nAdd `'django_attachments'` to `INSTALLED_APPS`.\n\nUsage\n-----\n\nAdd `GalleryField` or `LibraryField` to django model.\n\n.. code:: python\n\n\tfrom django.db import models\n\tfrom django_attachments.fields import LibraryField, GalleryField\n\n\n\tclass Article(models.Model):\n\t\ttitle = models.CharField(max_length=100)\n\t\tattachments = LibraryField(related_name='articles_with_attachment', on_delete=models.CASCADE)\n\t\tgallery = GalleryField(related_name='articles_with_gallery', on_delete=models.CASCADE)\n\n\nUse `AttachmentsAdminMixin` to enable attachments in admin interface.\n\n.. code:: python\n\n\tfrom django.contrib import admin\n\n\tfrom .models import Article\n\tfrom django_attachments.admin import AttachmentsAdminMixin\n\n\n\tclass ArticleAdmin(AttachmentsAdminMixin, admin.ModelAdmin):\n\t\tpass\n\n\n\tadmin.site.register(Article, ArticleAdmin)\n\nScreenshots\n-----------\n\n.. image:: https://raw.github.com/wiki/mireq/django-attachments/django_attachments.png?v2022-12-11\n\n.. |version| image:: https://badge.fury.io/py/django-attachments-management.svg\n\t:target: https://pypi.python.org/pypi/django-attachments-management/\n\n.. |downloads| image:: https://img.shields.io/pypi/dw/django-attachments-management.svg\n\t:target: https://pypi.python.org/pypi/django-attachments-management/\n\n.. |license| image:: https://img.shields.io/pypi/l/django-attachments-management.svg\n\t:target: https://pypi.python.org/pypi/django-attachments-management/\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Attachments management app for django",
"version": "1.1.2",
"project_urls": {
"changelog": "https://github.com/mireq/django-attachments/blob/master/CHANGELOG.md",
"documentation": "https://github.com/mireq/django-attachments",
"homepage": "https://github.com/mireq/django-attachments",
"repository": "https://github.com/mireq/django-attachments"
},
"split_keywords": [
"pylibmc",
"django"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "49e9607a22609f3ae6c33fe36b36b1727a8db194a56f199a6b58c93960c7d73c",
"md5": "75349dc68e455c1396d0b76cb6c1f816",
"sha256": "28b1579fc32744e4e8dcf510537e2113083b2660ed0a63125db86b3eb8764fbd"
},
"downloads": -1,
"filename": "django_attachments_management-1.1.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "75349dc68e455c1396d0b76cb6c1f816",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 60006,
"upload_time": "2023-05-11T04:30:44",
"upload_time_iso_8601": "2023-05-11T04:30:44.664964Z",
"url": "https://files.pythonhosted.org/packages/49/e9/607a22609f3ae6c33fe36b36b1727a8db194a56f199a6b58c93960c7d73c/django_attachments_management-1.1.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "094e33743e28ce343afd419a5ac6274840ec73ee45563860b094019c774bb59c",
"md5": "9b54539059ff04dbaae1b9e7176e8e4b",
"sha256": "d8b54664ed0f7a1d6c0ddd2f8c957ea5994fa779092f2a3de3411e825138af11"
},
"downloads": -1,
"filename": "django_attachments_management-1.1.2.tar.gz",
"has_sig": false,
"md5_digest": "9b54539059ff04dbaae1b9e7176e8e4b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 57603,
"upload_time": "2023-05-11T04:30:48",
"upload_time_iso_8601": "2023-05-11T04:30:48.978335Z",
"url": "https://files.pythonhosted.org/packages/09/4e/33743e28ce343afd419a5ac6274840ec73ee45563860b094019c774bb59c/django_attachments_management-1.1.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-05-11 04:30:48",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "mireq",
"github_project": "django-attachments",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "django-attachments-management"
}