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.readthedocs.io
📦 Package located at https://pypi.org/project/django-fbv/
Features
decorators
fbv.decorators.render_html
: decorator to specify the template that a view function response should use when renderingfbv.decorators.render_view
: decorator to specify the template and content type that a view function response should use when renderingfbv.decorators.render_json
: decorator to automatically render dictionaries, Django Models, or Django QuerySets as a JSON response
views
fbv.views.html_view
: directly render a template fromurls.py
fbv.views.redirect_view
: redirect to a pattern name fromurls.py
fbv.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 therequest
for the current request's HTTP method
Read all of the documentation at https://django-fbv.readthedocs.io/.
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-fbv-0.5.1.tar.gz
(6.5 kB
view hashes)
Built Distribution
Close
Hashes for django_fbv-0.5.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f9aefddb929777e203ff6ae4c46c6e53bbe1ba4534ba6c2e73b43304f4feea8 |
|
MD5 | 815cb817ce8d19ab5a41cb6c74581782 |
|
BLAKE2b-256 | 047985e5840e9156c6619fd36f0023673545f911e42f4c2114d7b7c4db0d26e5 |