Skip to main content

Helper for building BREAD interfaces

Project description

Django Bread is a Django app to help build BREAD (Browse, Read, Edit, Add, Delete) views for Django models.

It helps with default templates, url generation, permissions, filters, pagination, and more.

This is relatively stable. We’re using it in production and have attempted to document the important parts, but feedback is welcome.

Breaking change in 1.0.0

Version 1.0.0 includes a breaking change! If you’re using the default view permissions, before upgrading, make sure you’ve migrated your users and groups that have “read_{model_name}” permissions to also have “view_{model_name}”. From 1.0.0 on, that’s the default permission a user needs to use the read views, because it’s become the standard Django permission for read-only access since Django 2.1.

If you’re still on Django 2.0, don’t upgrade django-bread until you can get to at least Django 2.1. (Hopefully that’s not the case, since Django 2.0 has been out of support since April 1, 2019.)

Supported versions

Django: 2.2, 3.2 Python: 3.7, 3.8, 3.9, 3.10

For Python 2.7 and/or Django 1.11 support, the 0.5 release series is identical (features-wise) to 0.6 and is available on PyPI: https://pypi.org/project/django-bread/#history

Maintainer Information

We use Github Actions to lint (using pre-commit, black, isort, and flake8), test (using tox and tox-gh-actions), calculate coverage (using coverage), and build documentation (using sphinx).

We have a local script to do these actions locally, named maintain.sh:

$ ./maintain.sh

A Github Action workflow also builds and pushes a new package to PyPI whenever a new Release is created in Github. This uses a project-specific PyPI token, as described in the PyPI documentation here. That token has been saved in the PYPI_PASSWORD settings for this repo, but has not been saved anywhere else so if it is needed for any reason, the current one should be deleted and a new one generated.

As always, be sure to bump the version in bread/__init__.py before creating a Release, so that the proper version gets pushed to PyPI.

Questions or Issues?

If you have questions, issues or requests for improvements please let us know on Github.

Development sponsored by Caktus Consulting Group, LLC.

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_bread-1.0.3.tar.gz (48.5 kB view details)

Uploaded Source

Built Distribution

django_bread-1.0.3-py2.py3-none-any.whl (49.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file django_bread-1.0.3.tar.gz.

File metadata

  • Download URL: django_bread-1.0.3.tar.gz
  • Upload date:
  • Size: 48.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for django_bread-1.0.3.tar.gz
Algorithm Hash digest
SHA256 848d059c17d7ce73aef9e065c7aca8bb67c7441ba473bfb1088ac3955a162b40
MD5 5a7b64aeaa5a541a540a71fbf1d36430
BLAKE2b-256 77f7e84e75b2fc62e34af86c6bb4f7d363761bcd434cc8fd7ef3dee01c991b69

See more details on using hashes here.

File details

Details for the file django_bread-1.0.3-py2.py3-none-any.whl.

File metadata

  • Download URL: django_bread-1.0.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 49.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for django_bread-1.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 246a7175c3e0935e19a42212b742a165488125adafa00793a0c98a0d469f8ba0
MD5 0fb649fc8f76e5f43b016bcacd75f26a
BLAKE2b-256 ebef2989e94fa6b0d5ebcce54b5b8fa2a86cedd6e111fd871d7504abb6a48104

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page