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
: convenience decorator to specify the specific template that a view function should usefbv.decorators.render_view
: convenience decorator to specify the specific template and content type that a view function should use
views
fbv.views.html_view
: directly render a template fromurls.py
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.2.0.tar.gz
(4.9 kB
view hashes)
Built Distribution
Close
Hashes for django_fbv-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62e8d9ecb7eeaeb64820085bf043213dd61e48762878446f23acb2203910b7be |
|
MD5 | 46b223ce1db4a17e07301bc4ce4ceb66 |
|
BLAKE2b-256 | 25ac48f77e5a0843fd5564d6feef87cde10eeea408c1113ec564baf01087b9e4 |