Skip to main content

Reusable backend to accept & track donations to your site

Project description

Django Donations

https://img.shields.io/travis/founders4schools/django-donations.svg?style=flat-square https://img.shields.io/coveralls/founders4schools/django-donations.svg?style=flat-square Code Health https://img.shields.io/requires/github/founders4schools/django-donations.svg?style=flat-square

TODO

  • Update the documentation and readme

  • integrate with readthedocs or pythonhosted or both!

  • tests - unit/integration

  • task to periodically verify pending donations

(* dashboard - track/view donations from the business side - kpis etc * views/urls? - provide an api hook into the system (/donations - dashboard))

v2 and beyond

  • (other providers (paypal etc))

  • tasks.py - recurring donation handling - this is not possible right now as SDI is not an API to be automated

Usage

Example app is under ./example/app. Basically subclass DonateView or POST to DonateAPI with the correct data…. (example needed) When using DonateView, there is the DonationForm which can be subclassed to customize or just used by itself.

Settings

Supported Providers

  • Just Giving SDI

Basic Commands - Update to be correct

Test coverage

To run the tests, check your test coverage, and generate an HTML coverage report:

$ coverage run manage.py test
$ coverage html
$ open htmlcov/index.html

Running end to end integration tests

N.B. The integration tests will not run on Windows.

To install the test runner:

$ pip install hitch

To run the tests, enter the django-donations/tests directory and run the following commands:

$ hitch init

Then run the stub test:

$ hitch test stub.test

This will download and compile python, postgres and redis and install all python requirements so the first time it runs it may take a while.

Subsequent test runs will be much quicker.

The testing framework runs Django, Celery (if enabled), Postgres, HitchSMTP (a mock SMTP server), Firefox/Selenium and Redis.*/

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

django-donations-0.1.3.tar.gz (10.6 kB view details)

Uploaded Source

Built Distributions

django_donations-0.1.3-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

django_donations-0.1.3-py2-none-any.whl (15.0 kB view details)

Uploaded Python 2

File details

Details for the file django-donations-0.1.3.tar.gz.

File metadata

File hashes

Hashes for django-donations-0.1.3.tar.gz
Algorithm Hash digest
SHA256 9471e33a21bb23f366cff3519bd64631f58053a192e0fc7e21c961de366db6a4
MD5 28d275faab0f3f2d07eb0f1882111c18
BLAKE2b-256 d60866e8c19dcbccd2eacc6f8e88a3861d2bdf2010bc59734f63e4fd3b3f70c9

See more details on using hashes here.

File details

Details for the file django_donations-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for django_donations-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e9c883b027897b7ef74fcbc41e35a338a886391f73d8025e779a0e2143dce18e
MD5 ffe532e1d2fb7181156df2f6e6eeb6d2
BLAKE2b-256 06398d9abe71ba56674363218ee6893f68d01f010c5b5fe76246988b7102759b

See more details on using hashes here.

File details

Details for the file django_donations-0.1.3-py2-none-any.whl.

File metadata

File hashes

Hashes for django_donations-0.1.3-py2-none-any.whl
Algorithm Hash digest
SHA256 683583085614606968432fceb0cc32c696fbd8f048f10aa29c3d2e2fb044161e
MD5 11eec630a9db33e1b9ca45443b04ae37
BLAKE2b-256 9bce9600f3ca5df465ad3d159f569ce7270b56b6cfe9b3094e5d0fe8783c57a2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page