Registered 2009-11-13 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
Development focus:

trunk series 

lp:django-currencies 
Browse the code

Programming Languages:
python
Version control system:
Bazaar
Licences:
Simplified BSD Licence

RDF metadata

View full history Series and milestones

django-currencies trunk series is the current focus of development

Get Involved

Downloads

Latest version is 0.2.4
released on 2012-03-27

All downloads