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.5.0.tar.gz
(6.5 kB
view hashes)
Built Distribution
Close
Hashes for django_fbv-0.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41821537934fbc7245af7e337107819a79dc140132008696ba13c0ef8c775b1e |
|
MD5 | 618fb03926d5370b8abfd38fd33ea7e4 |
|
BLAKE2b-256 | 44bd8b4fe82a5d7d79f6bdce9eb2170f57085f48dea40de9f0763c1f6bb59cea |