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.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.3.0.tar.gz
(5.6 kB
view hashes)
Built Distribution
Close
Hashes for django_fbv-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f541aaf2811ec9870d7d0ba8196b0f248f2549f4fb29731638aad86637fb5c64 |
|
MD5 | 85050c8ff13b42d6d44ed7bc9e1c621d |
|
BLAKE2b-256 | 9842c9fe8ebf908aeaeba5b6680506fa9d9992e14fb9da641784d4008fca32cb |