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.0.1.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for django_df_cards-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 023d305668fdef49c973c90d10151cfcdfd3a50b845abb009c07ad5f5fd19416 |
|
MD5 | 7dafecee29d6a59cedba6a0817263496 |
|
BLAKE2b-256 | b3f7326c447d88f486f2a67f52400af5219c5e12d7876123a7bffc220998b40d |