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

Uploaded Source

Built Distributions

django_donations-0.1.2-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

django_donations-0.1.2-py2-none-any.whl (14.9 kB view details)

Uploaded Python 2

File details

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

File metadata

File hashes

Hashes for django-donations-0.1.2.tar.gz
Algorithm Hash digest
SHA256 5fbc405362eea684dae6924bb824e73d397774f8cd2cbee71a5d2acc79340b38
MD5 97a9e4ec9b81cdeb8297e3e14286ada4
BLAKE2b-256 69820bf6ebcbd6e18e26beed6c7e35f23c022482dd0933d2d53f90a276e77214

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_donations-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d7bb0e7761d60c1f64b696520abf338c912653503332f3f3cec7ff12b1544e40
MD5 d718c00b1ae7501a4bab282ddcd11b30
BLAKE2b-256 68f9a2ad3e1aaa1d21d5f93e106630984cfc44f4e4b9345e43f76bd61054529e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_donations-0.1.2-py2-none-any.whl
Algorithm Hash digest
SHA256 a636667fed79da1d37a76fd2e767b2174a4dd4cad3c85260e674e47461bd6c7a
MD5 da54900fc7dd6212dc3bb23a4a9a8537
BLAKE2b-256 1fc525838bc17ef84e559ed46fd64de7d0a44d32e489b06738e78f59b1edcd3e

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