django-currencyware

A Django utility application that provides translated currency name services


License
MIT
Install
pip install django-currencyware==0.1.3

Documentation

Django Currencyware

A Django application to provides translated currency names

status-image version-image coverage-image

Overview

Best attempt to translate currency names while keeping it DRY.

How to install

1. easy_install django-currencyware
2. pip install django-currencyware
3. git clone http://github.com/un33k/django-currencyware
    a. cd django-currencyware
    b. run python setup.py install
4. wget https://github.com/un33k/django-currencyware/zipball/master
    a. unzip the downloaded file
    b. cd into django-currencyware-* directory
    c. run python setup.py install

How to use

 # In a models.py
 from currencyware.utils.currency import get_all_currencies_prioritized
 from currencyware.fields import CurrencyField

 currency = CurrencyField(
     _("Currency"),
     choices=get_all_currencies_prioritized(),
 )

Advanced users:

 # In a settings.py
 # You can overwrite the default list of currency codes
 ALL_CURRENCY_CODES = ['USD', 'CAD', 'EUR'']

 # You can prepend priority countries to the lst
 PRIORITY_CURRENCY_CODES = ['CAD', 'USD']

Running the tests

To run the tests against the current environment:

python manage.py test

License

Released under a (MIT) license.

Version

X.Y.Z Version

`MAJOR` version -- when you make incompatible API changes,
`MINOR` version -- when you add functionality in a backwards-compatible manner, and
`PATCH` version -- when you make backwards-compatible bug fixes.