A reusable Django app that tracks currency rates.
Project description
A reusable Django app that tracks currency rates.
Installation
To get the latest stable release from PyPi
pip install django-currency-history
To get the latest commit from GitHub
pip install -e git+git://github.com/bitmazk/django-currency-history.git#egg=currency_history
TODO: Describe further installation steps (edit / remove the examples below):
Add currency_history to your INSTALLED_APPS
INSTALLED_APPS = (
...,
'currency_history',
)
Before your tags/filters are available in your templates, load them by using
{% load currency_history_tags %}
Don’t forget to migrate your database
./manage.py migrate currency_history
Usage
First fill the database with currencies and add your desired rates. By default you will have to track the history by yourself. Check the management commands and settings for automated trackings.
Management Commands
track_currency_rates
Run this command to let external services like Google or Yahoo track currency rates.
./manage.py track_currency_rates
You might want to run it with a cron job.
Settings
CURRENCY_SERVICE
Default = None
By default no external service tracks your rate histories. The following services are available:
'openexchangerates': https://openexchangerates.org/
OPENEXCHANGERATES_APP_ID
Default = False
If you want to make use of the openexchangerates service, make sure to register at https://openexchangerates.org/ and provide your App ID.
CURRENCY_EMAIL_REPORT
Default = False
Enable this settings to receive an email report every time the track_currency_rates command was called.
Contribute
If you want to contribute to this project, please perform the following steps
# Fork this repository
# Clone your fork
mkvirtualenv -p python2.7 django-currency-history
make develop
git co -b feature_branch master
# Implement your feature and tests
git add . && git commit
git push -u origin feature_branch
# Send us a pull request for your feature branch
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for django-currency-history-0.2.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8fa8b00e4d6a3b292a35ac5e89824a5dcaf21de25decf6882f01103da2228004 |
|
MD5 | ca8f1e847a478726dd4e80235dfa8923 |
|
BLAKE2b-256 | c4361bd903ec74953669fdf1fc9cbd2a8b5c48f61638111d1e61e751766588c6 |