django-fbv
Utilities to make Django function-based views cleaner, more efficient, and better tasting.
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/.