/django-view-utils

Primary LanguagePythonMIT LicenseMIT

Django View Decorator

Tests Documentation PyPI - Version PyPI - Python Version pre-commit.ci status


django-view-utils aims to be a collection of (opinionated) useful utilities for Django views. Mainly function based views.

Table of Contents

Features

Generic functions

The following generic functions are provided:

  • render_list
  • render_form

Motivation

Writing function based views in Django often involves patterns which are perfect candidates for being extracted into helper functions. This package aims to provide a collection of such functions.

Installation

pip install django-view-utils

Development

git clone
cd django-view-utils
pip install hatch
hatch run tests:cov
hatch run tests:typecheck

License

django-view-utils is distributed under the terms of the MIT license.