Skip to main content
Help the Python Software Foundation raise $60,000 USD by December 31st!  Building the PSF Q4 Fundraiser

Currency conversion for money

Project description

Currency conversion for money


The full documentation is at


Install django-money-rates:

pip install django-money-rates

Then use it in a project:

import djmoney_rates

In order to save exchange rates to your database, add djmoney_rates to your INSTALLED_APPS in your project’s settings:


Setup the Open Exchange Rates backend

Open an account at if you don’t have one already. Then, add this to your project’s settings:

    'DEFAULT_BACKEND': 'djmoney_rates.backends.OpenExchangeBackend',

For more information on the Open Exchange Rates API, see

Pull the latest Exchange Rates

Once your backend is setup, get the latest exchange rates:

$ ./ update_rates

Convert from one currency to another

Here’s an example of converting 10 Euros to Brazilian Reais:

from moneyed import Money
from djmoney_rates.utils import convert_money
brl_money = convert_money(10, "EUR", "BRL")


  • Convert money from one currency to another with an easy to use API.


  • Add money converter wrapper for util’s convert_money function.
  • Add celery periodic task for getting daily exchange rates.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-money-rates-nb, version 0.3.1
Filename, size File type Python version Upload date Hashes
Filename, size django-money-rates-nb-0.3.1.tar.gz (11.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page