Skip to main content

A Django app to convert units between different systems.

It is meant to simplify the need to use different unit systems at the same time. E.g. providing inputs, that allow entering distances and weights in the imperial or the metric system.

Installation

To get the latest stable release from PyPi

pip install django-units

To get the latest commit from GitHub

pip install -e git+git://github.com/bitmazk/django-units.git#egg=units

TODO: Describe further installation steps (edit / remove the examples below):

Add units to your INSTALLED_APPS

INSTALLED_APPS = (
    ...,
    'units',
)

Add the units URLs to your urls.py

urlpatterns = patterns('',
    ...
    url(r'^units/', include('units.urls')),
)

Before your tags/filters are available in your templates, load them by using

{% load units_tags %}

Don’t forget to migrate your database

./manage.py migrate units

Usage

TODO: Describe usage or point to docs. Also describe available settings and templatetags.

Point to constants, form mixin and general conversion utils. [WIP]

Contribute

If you want to contribute to this project, please perform the following steps

# Fork this repository
# Clone your fork
mkvirtualenv -p python2.7 django-units
make develop

git co -b feature_branch master
# Implement your feature and tests
git add . && git commit
git push -u origin feature_branch
# Send us a pull request for your feature branch

Release files for django-units 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-units 0.2.1
File Size Uploaded
django-units-0.2.1.tar.gz 11.1 kB Details

Release files / django-units-0.2.1.tar.gz

Download URL django-units-0.2.1.tar.gz
Size 11.1 kB
Tags Source
SHA-256 checksum
How to use checksums
bb30e655b621c0bfb3d6b4b91e24cf6a3928c699f7f4fdee016d166b009db780
BLAKE2b-256 checksum
How to use checksums
fba2044831213797aedf1c3deb09088d7b4770e799daf8e93e7f9f43b72f7582
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2.1 This release

1 release file

0.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page