-
Visit www.balancedpayments.com and get yourself an API key
-
pip install django-balanced
-
Edit your
settings.py
and add the API key like so:import os BALANCED = { 'API_KEY': os.environ.get('BALANCED_API_KEY'), }
-
Add
django_balanced
to yourINSTALLED_APPS
insettings.py
INSTALLED_APPS = ( ... 'django.contrib.admin', # if you want to use the admin interface 'django_balanced', ... )
-
Run
BALANCED_API_KEY=YOUR_API_KEY django-admin.py syncdb
-
Run
BALANCED_API_KEY=YOUR_API_KEY python manage.py runserver
-
Visit
http://127.0.0.1:8000/admin
and pay some people!