Registered by Panos Laganakos

django-currencies allows you to define different currencies, and includes template tags/filters to allow easy conversion between them.

Once you have everything set up (read the included INSTALL.txt), you will be able to use the following code in your templates

   {% change_currency [price] [currency_code] %}

i.e:

   {% change_currency product.price "USD" %}

   # or if we have the currencies.context_processors.currencies
   # available:

   {% change_currency product.price CURRENCY.code %}

or use the filter:

   {{ [price]|currency:[currency] }}

i.e.:

   {{ product.price|currency:"USD" }}

or set the CURRENCY context variable with a POST to the included view:

    {% url currencies_set_currency [currency] %}

Full documentation is available at:

http://packages.python.org/django-currencies/

Project information

Maintainer:
Panos Laganakos
Driver:
Not yet selected
Licence:
Simplified BSD Licence

RDF metadata

View full history Series and milestones

trunk series is the current focus of development.

All code Code

Version control system:
Bazaar
Programming languages:
python

Get Involved

Downloads

Latest version is 0.2.4
released

All downloads