-
Install
pip install -e git://github.com/myarik/django-cbrcours.git#egg=cbrcours
-
Add "myblog" to INSTALLED_APPS:
INSTALLED_APPS = {
...
'cbrcours'
}
-
Run
python manage.py syncdb
to create cbrcour's models orpython manage.py migrate
. -
Get cours:
from cbrcours import get_course get_course('USD')
-
Convert price:
from cbrcours import conver_price conver_price(526, 'EUR')