Utilities to make function-based views cleaner, more efficient, and better tasting.
BSD-3-CLAUSE License
📖 Complete documentation: https://django-fbv.readthedocs.io
📦 Package located at https://pypi.org/project/django-fbv/
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 responsefbv.views.html_view
: directly render a template from urls.py
fbv.views.redirect_view
: redirect to a pattern name from urls.py
fbv.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.icofbv.middleware.RequestMethodMiddleware
: adds a boolean property to the request
for the current request's HTTP methodRead all of the documentation at https://django-fbv.readthedocs.io/.