Skip to main content

Fraction display and form fields for Django

Project description


.. image::

.. image::

Fraction display and form fields for Django


The full documentation is at


Install django-fractions::

pip install django-fractions

Then use it in a project::

import djfractions


* Template tag for displaying float and Decimal values as fractions including mixed numbers


* Use unicode fractions instead of sub/sup when reasonable for output
* Consider not using sub/sup at all as they can be problematic for screen readers based on a very old discussion of this subject
* Tags and filters to convert to Decimal and/or float
* Test cases

Cookiecutter Tools Used in Making This Package

* cookiecutter
* cookiecutter-djangopackage


0.1.0 (2015-08-01)

* First release on PyPI.

Project details

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page