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 https://badge.fury.io/py/django-donations.svg

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.2.3.tar.gz (11.0 kB view details)

Uploaded Source

Built Distributions

django_donations-0.2.3-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

django_donations-0.2.3-py2-none-any.whl (15.4 kB view details)

Uploaded Python 2

File details

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

File metadata

File hashes

Hashes for django-donations-0.2.3.tar.gz
Algorithm Hash digest
SHA256 2f5023b1bf09fd7f893e4a888bc35804d9438a86f74bcf1a5d8116bae213e200
MD5 9c0e296e74051d8cb110c26cd8ebdded
BLAKE2b-256 1368d4262b68e5728c60f356864c6fc1c870dccc065929516962b1f187df4de4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_donations-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 007103271ab60ad45b9618d4c7c857b961cdd9c46b6332c68cbe9ceacd921bf7
MD5 d7e1ad347cff53b3b1841a3b446b9509
BLAKE2b-256 9f220e70d3c8f96e089b815e6507fa39bb07ec6670f57a5e362572cf37589444

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_donations-0.2.3-py2-none-any.whl
Algorithm Hash digest
SHA256 3ab3b565f0ec914ccb04fb2a1718d5ee2a8a643ff3b809afb8739a2c0b105f6d
MD5 05772706419de3fffe594934530034e6
BLAKE2b-256 ba2b3288b885a7c824813372903f9e786b72fa7788d7deb7e08bb6bfeb4f5fcc

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