Skip to main content

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.

decorators

  • fbv.decorators.render_html: convenience decorator to use instead of django.shortcut.render with a specified template
  • fbv.decorators.render_view: convenience decorator to use instead of django.shortcut.render with a specified template and content type

views

  • fbv.views.html_view: directly renders a template from urls.py

middleware

  • fbv.middleware.RequestMethodMiddleware: adds a boolean property to the request for the current request's HTTP method

Complete documentation: https://django-fbv.readthedocs.org

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.1.0.tar.gz (4.3 kB view hashes)

Uploaded Source

Built Distribution

django_fbv-0.1.0-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page