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 hashes)
Built Distribution
Close
Hashes for django_df_cards-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 672085660d230762490f2e13425b3a69a4573df7c1705d347a554bf48131f4a3 |
|
MD5 | 7f42de73e4fa0e946f3668de935c1753 |
|
BLAKE2b-256 | e43edf9f6454037fd5ee1b4b208eb353298cd78308a3c454f9447201ee3610f4 |