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

Uploaded Source

Built Distributions

django_donations-0.2.2-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

django_donations-0.2.2-py2-none-any.whl (15.5 kB view details)

Uploaded Python 2

File details

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

File metadata

File hashes

Hashes for django-donations-0.2.2.tar.gz
Algorithm Hash digest
SHA256 20f26a93fcf0a43585077aaa71c04ef71262e3e3a286b7249244626d5d18d360
MD5 f0c63627176e1e91c822c9872e68063a
BLAKE2b-256 f10e51b0bd8e51d14acc9b301de9e367ee852eb231d71bbe69fa60ad115b577e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_donations-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8514c4b0ccf3bc4824547d6f3f742cc594d85dd88a615da79f860ff53d1e90b7
MD5 2179174563806c0f42020c5276a7e49a
BLAKE2b-256 2bf94b1375f5c1ad2fca0085c021a021aaceda5eb60a9c9847f6e2961f1c3288

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_donations-0.2.2-py2-none-any.whl
Algorithm Hash digest
SHA256 80a473aab93ef26790f1e0907776741867c67a848588dfe3f16ec23219107c5a
MD5 e9d32c44164a000a38d4c2fbafde124d
BLAKE2b-256 c43fba226c50eaf6d89bf318941b877dea9fd7ccf711ea8de0d904fd9dc3dc70

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