Banner model with images, videos and tags
- Install the package
pip install django-df-banners
- Include default
INSTALLED_APPS
fromdf_banners.defaults
to yoursettings.py
from df_banners.defaults import DF_BANNERS_INSTALLED_APPS
INSTALLED_APPS = [
...
*DF_BANNERS_INSTALLED_APPS,
...
]
To enable video support you need to install django-df-banners[video]
package and include df_banners.video
to your INSTALLED_APPS
:
from df_banners.defaults import DF_BANNERS_VIDEO_INSTALLED_APPS
INSTALLED_APPS = [
...
*DF_BANNERS_VIDEO_INSTALLED_APPS,
...
]
Installing dev requirements:
pip install -e .[test]
Installing pre-commit hook:
pre-commit install
Running tests:
pytest