django-df-cards 0.0.2

Creator: codyrutscher

Last updated:

Add to Cart

Description:

djangodfcards 0.0.2

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 - CharField
description - TextField
thumbnail - ImageField
full_image - ImageField
sequence - PositiveIntegerField

Development
Installing dev requirements:
pip install -e .[test]

Installing pre-commit hook:
pre-commit install

Running tests:
pytest

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.