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.
decorators
fbv.decorators.render_html
: convenience decorator to use instead ofdjango.shortcut.render
with a specified templatefbv.decorators.render_view
: convenience decorator to use instead ofdjango.shortcut.render
with a specified template and content type
views
fbv.views.html_view
: directly renders a template fromurls.py
middleware
fbv.middleware.RequestMethodMiddleware
: adds a boolean property to therequest
for the current request's HTTP method
Complete documentation: https://django-fbv.readthedocs.org
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.1.0.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for django_fbv-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f84867f16ba4bfb555b96dd7e0defa75cf9afa9fe3d5523c44eb54d4b51aee1 |
|
MD5 | 0c9a571e7aae3b8f8ff3c16d42b3a5bf |
|
BLAKE2b-256 | 500ce1aa5aa6fb0151d8fbd8b672e99c5434b739023d5a55860c8f25116ddb25 |