Utilities to make function-based views cleaner, more efficient, and better tasting.
Project description
django-fbv
Utilities to make Django function-based views cleaner, more efficient, and better tasting. 💥
📖 Complete documentation: https://django-fbv.adamghill.com
📦 Package located at https://pypi.org/project/django-fbv/
Features
Features
Decorators
fbv.decorators.render_html: renders a view as HTML with the specified templatefbv.decorators.render_view: renders a view as a content type with the specified templatefbv.decorators.render_json: renders dictionaries, Django Models, or Django QuerySets as a JSON response
Views
fbv.views.html_view: directly render a template fromurls.pyfbv.views.redirect_view: redirect to a pattern name fromurls.pyfbv.views.file: serve a filefbv.views.favicon_file: serve an image file as the favicon.icofbv.views.favicon_emoji: serve an emoji as the favicon.ico
Middleware
fbv.middleware.RequestMethodMiddleware: adds a boolean property to therequestfor the current request's HTTP method
Read all of the documentation at https://django-fbv.adamghill.com/.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_fbv-0.8.0.tar.gz.
File metadata
- Download URL: django_fbv-0.8.0.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3709fd312493699e1c4b2ab6d010f19858fca72512f6bf54227c90304ea66017
|
|
| MD5 |
4948fa1e9ace1d7d2930230aa317be3d
|
|
| BLAKE2b-256 |
583afe362e8a2acc5bb41be585cebde1f8fe3ba6fc30ea24af8789fee544b74d
|
Provenance
The following attestation bundles were made for django_fbv-0.8.0.tar.gz:
Publisher:
publish.yml on adamghill/django-fbv
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_fbv-0.8.0.tar.gz -
Subject digest:
3709fd312493699e1c4b2ab6d010f19858fca72512f6bf54227c90304ea66017 - Sigstore transparency entry: 642073766
- Sigstore integration time:
-
Permalink:
adamghill/django-fbv@919fdd852b38734f53a92e03aefe0b140dc2e468 -
Branch / Tag:
refs/tags/0.8.0 - Owner: https://github.com/adamghill
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@919fdd852b38734f53a92e03aefe0b140dc2e468 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file django_fbv-0.8.0-py3-none-any.whl.
File metadata
- Download URL: django_fbv-0.8.0-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fbd167664244a13d4d3b3fc4e4e2f550f10312eed237df013071b10f5ca8159c
|
|
| MD5 |
ac4e8406117d5cc44bde9c8303a0dcc6
|
|
| BLAKE2b-256 |
a37853279b39ab409a97933a3b6f15533fc7cd54673601c5559ae7f8faa8eed2
|
Provenance
The following attestation bundles were made for django_fbv-0.8.0-py3-none-any.whl:
Publisher:
publish.yml on adamghill/django-fbv
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_fbv-0.8.0-py3-none-any.whl -
Subject digest:
fbd167664244a13d4d3b3fc4e4e2f550f10312eed237df013071b10f5ca8159c - Sigstore transparency entry: 642073767
- Sigstore integration time:
-
Permalink:
adamghill/django-fbv@919fdd852b38734f53a92e03aefe0b140dc2e468 -
Branch / Tag:
refs/tags/0.8.0 - Owner: https://github.com/adamghill
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@919fdd852b38734f53a92e03aefe0b140dc2e468 -
Trigger Event:
workflow_dispatch
-
Statement type: