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

Uploaded Source

Built Distributions

django_donations-0.2.0-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

django_donations-0.2.0-py2-none-any.whl (15.3 kB view details)

Uploaded Python 2

File details

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

File metadata

File hashes

Hashes for django-donations-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d49799f6294f44a27eb79d95790c785eef09819287da260356df11b405691df0
MD5 c09251ae725d356d5a7539f8eff3aecf
BLAKE2b-256 fa85ea6987bb9099a93e50d47c0e2d2673e9579960f5eadf0386ee95022b594c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_donations-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 812622d69c4720721da795a4c4ced7c8c74c0fdc6d92cde7a7d255951cfa6305
MD5 c8ca8c2af8f273cc9b132ad7036d0da9
BLAKE2b-256 41bb62c246bf2886110593c572c8d16f0f0673efcc941314749eb4bd042de60c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_donations-0.2.0-py2-none-any.whl
Algorithm Hash digest
SHA256 ec09361882ecb74ee613352ec4a000888d6300ef17f21f110156b8dc9a1b5036
MD5 b9eb2b4c3d2728d802da2fc854e7b1c6
BLAKE2b-256 85e5a19b5a02817edf7b60ed3f301484d3605b93cbb0aaf6af8191780873b8d4

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