Django DF Cards
Model mixins to provide image/title/description and other fields to be displayed as cards.
Installation:
- Install the package
pip install django-df-cards
Usage:
from df_cards.models import TitledCard, ThumbnailMixin, FullImageMixin
class Post(TitledCard, ThumbnailMixin, FullImageMixin):
pass
will give you Post model with the following fields:
title- CharFielddescription- TextFieldthumbnail- ImageFieldfull_image- ImageFieldsequence- PositiveIntegerField
Development
Installing dev requirements:
pip install -e .[test]
Installing pre-commit hook:
pre-commit install
Running tests:
pytest
Release files for django-df-cards 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-df-cards-0.1.1.tar.gz | 4.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_df_cards-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.9 kB
Release files / django-df-cards-0.1.1.tar.gz
| Download URL | django-df-cards-0.1.1.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
67fc0440d54d0c216349f945731e374eb44c45f1cfc60d3f14108f76b515a9de
|
|
BLAKE2b-256 checksum How to use checksums |
396ebfbebd94c16e8399b9b8fa52be240f57a2ab8a61a11c8a3dbd9675742115
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / django_df_cards-0.1.1-py3-none-any.whl
| Download URL | django_df_cards-0.1.1-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
672085660d230762490f2e13425b3a69a4573df7c1705d347a554bf48131f4a3
|
|
BLAKE2b-256 checksum How to use checksums |
e43edf9f6454037fd5ee1b4b208eb353298cd78308a3c454f9447201ee3610f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|