django-df-cards
Project description
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
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-df-cards-0.1.1.tar.gz
(4.4 kB
view details)
Built Distribution
File details
Details for the file django-df-cards-0.1.1.tar.gz
.
File metadata
- Download URL: django-df-cards-0.1.1.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67fc0440d54d0c216349f945731e374eb44c45f1cfc60d3f14108f76b515a9de |
|
MD5 | 6cc7a0196bed8095284960b2336f678e |
|
BLAKE2b-256 | 396ebfbebd94c16e8399b9b8fa52be240f57a2ab8a61a11c8a3dbd9675742115 |
File details
Details for the file django_df_cards-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: django_df_cards-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 672085660d230762490f2e13425b3a69a4573df7c1705d347a554bf48131f4a3 |
|
MD5 | 7f42de73e4fa0e946f3668de935c1753 |
|
BLAKE2b-256 | e43edf9f6454037fd5ee1b4b208eb353298cd78308a3c454f9447201ee3610f4 |