django-fbv-0.5.1
توضیحات
Utilities to make function-based views cleaner, more efficient, and better tasting.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | django-fbv-0.5.1 |
| نام | django-fbv |
| نسخه کتابخانه | 0.5.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | adamghill |
| ایمیل نویسنده | adam@adamghill.com |
| آدرس صفحه اصلی | https://github.com/adamghill/django-fbv/ |
| آدرس اینترنتی | https://pypi.org/project/django-fbv/ |
| مجوز | BSD-3 |
<p align="center">
<a href="https://django-fbv.readthedocs.io"><h1 align="center">django-fbv</h1></a>
</p>
<p align="center">Utilities to make Django function-based views cleaner, more efficient, and better tasting. 💥</p>



📖 Complete documentation: https://django-fbv.readthedocs.io
📦 Package located at https://pypi.org/project/django-fbv/
## Features
### decorators
- [`fbv.decorators.render_html`](https://django-fbv.readthedocs.io/en/latest/decorators/#render-html): decorator to specify the template that a view function response should use when rendering
- [`fbv.decorators.render_view`](https://django-fbv.readthedocs.io/en/latest/decorators/#render-view): decorator to specify the template and content type that a view function response should use when rendering
- [`fbv.decorators.render_json`](https://django-fbv.readthedocs.io/en/latest/decorators/#render-json): decorator to automatically render dictionaries, Django Models, or Django QuerySets as a JSON response
### views
- [`fbv.views.html_view`](https://django-fbv.readthedocs.io/en/latest/views/#html-view): directly render a template from `urls.py`
- [`fbv.views.redirect_view`](https://django-fbv.readthedocs.io/en/latest/views/#redirect-view): redirect to a pattern name from `urls.py`
- [`fbv.views.favicon_file`](https://django-fbv.readthedocs.io/en/latest/views/#favicon-file): serve an image file as the favicon.ico
- [`fbv.views.favicon_emoji`](https://django-fbv.readthedocs.io/en/latest/views/#favicon-emoji): serve an emoji as the favicon.ico
### middleware
- [`fbv.middleware.RequestMethodMiddleware`](https://django-fbv.readthedocs.io/en/latest/middleware/): adds a boolean property to the `request` for the current request's HTTP method
Read all of the documentation at https://django-fbv.readthedocs.io/.
نیازمندی
| مقدار | نام |
|---|---|
| >2.2.0 | django |
| >=4.3.2,<5.0.0) | Sphinx |
| >=1.0.3,<2.0.0) | linkify-it-py |
| >=0.16.1,<0.17.0) | myst-parser |
| >=2021.11.23,<2022.0.0) | furo |
| >=0.4.0,<0.5.0) | sphinx-copybutton |
| xtr | toml; |
| >=21.4.0,<22.0.0) | attrs |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7,<4.0 | Python |
نحوه نصب
نصب پکیج whl django-fbv-0.5.1:
pip install django-fbv-0.5.1.whl
نصب پکیج tar.gz django-fbv-0.5.1:
pip install django-fbv-0.5.1.tar.gz