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

  • example project/sort out config folder
    • setup.py/requirements.txt

  • auto_config.py/app_settings.py

  • integrate with pypi, readthedocs & travis

  • tests - unit/integration

  • task to periodically verify pending donations

  • Update the documentation and readme

  • (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.1.tar.gz (10.7 kB view details)

Uploaded Source

Built Distributions

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

Uploaded Python 3

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

Uploaded Python 2

File details

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

File metadata

File hashes

Hashes for django-donations-0.1.1.tar.gz
Algorithm Hash digest
SHA256 105603b1c8598c12dd32193a3533f7bdf8d3018754a2801209391d0cebec0800
MD5 20d6aeb6766ac6fca3c3995327321c3d
BLAKE2b-256 8d4f70184b163a39fef76c5eda9e161abba0274341d46bb2aff943b10aff3978

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_donations-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8e8166fcbb1d15fad5b13fe75d3d82ee00d4ba0d116e8871809b60e4318b0280
MD5 54f60ade9d8ebded5a61fbd6c87d3954
BLAKE2b-256 f4db182aadc23c2c9f9b1670681acd2088a40643f9cf8e54239c0581f84b76ea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_donations-0.1.1-py2-none-any.whl
Algorithm Hash digest
SHA256 0eb0ff0f6afdb5472a5b4d8dd9e67bd5869f00ff6f3ab067b70416718fdc487a
MD5 be09f19b81b039f496cab1629ae7375d
BLAKE2b-256 3132f26e02b35572ef5037dc8d0bd72d7ef40b6aa3f10a00d3c8bbcfc56b982b

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