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.2.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for django_df_cards-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 150fce32780ff7bc73e55d0529fbc700318136e149f373ff57557d8b550c50a9 |
|
MD5 | 0847469f4e804de75e949df64cc4b45f |
|
BLAKE2b-256 | 5ad99a84ba0b40b6e498f93c09636448505c443e6d85f3b8d280c3110d5fddde |