Package: django-donations
Reusable django app to receive & track donations on charitable sitesDocumentationThe full documentation is athttps://django-donations.readthedocs.io.QuickstartInstall Django Donations:pip install django-donationsAdd it to yourINSTALLED_APPS:INSTALLED_APPS=(...'donations.apps.DonationsConfig',...)Add Django Donations’s URL patterns:fromdonationsimporturlsasdonations_urlsurlpatterns=[...url(r'^',include(donations_urls)),...]Just Giving ConfigurationThe app needs to be configured with your JustGiving API settings:# Ability to point to Production or Sandbox URLsJUST_GIVING_WEB_URL='http://v3-sandbox.justgiving.com'JUST_GIVING_API_URL='http://api-sandbox.justgiving.com'# Replace below with your personal detailsJUST_GIVING_CHARITY_ID='123456'JUST_GIVING_APP_ID='changeme'# Add a list of all the currencies you need to supportCURRENCIES=['GBP']TODOUpdate the documentation and readmeintegrate with readthedocs or pythonhosted or both!tests - unit/integrationtask 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 automatedSupported ProvidersJust Giving SDICreditsTools used in rendering this package:Cookiecuttercookiecutter-djangopackageHistory1.2.0 (2018-06-18)Removed theDonationProvidermodel, there is only 1 possibleRemoved theDONATION_FREQUENCIESsettings and magic to auto-create frequenciesAdded a method to handle monthly donations with Just Giving1.1.0 (2018-05-31)Added support for Django 2.01.0.0 (2018-05-30)Dropped support for Python < 3.5: dropped dependency onsixDropped support for Django < 1.11: dropped dependency ondjango-compatLifted restriction ondjango-rest-frameworkversion insetup.py0.7.4 (2017-11-06)New settingDONATION_VERIFY_API_URL_NAMEto configure the name of URL
to reverse when verifying a donation.0.7.3 (2017-10-30)Bump version to fix tagging0.7.2 (2017-10-30)Revert URL conf for Django 2.0 as it’s causing issues0.7.0 (2017-09-26)Addon_delete=models.CASCADEon foreign keys in migrationsMigrate URL confs to Django 2.0 syntaxUse django-compat for importingreverse0.6.2 (2017-06-09)Addon_delete=models.CASCADEon foreign keys for Django 2.00.6.1 (2017-06-08)Python 3: fix app name as bytes in migrationsDjango 1.11 compatibility0.6.0 (2017-01-30)Clean-up references todjango-timedeltafield(#9). This required to squash
the existing migrations. Make sure that you migrated to 0.5.0 first and
applied all migrations everywhere.Fix test setup. Now Django 1.10 is officially supported.0.5.0 (2017-01-27)Migrate to Django’sDurationField(#8). You need to upgrade yourDONATION_FREQUENCIESsetting. Values should now be pythontimedelta.0.4.0 (2017-01-27)Fix bug with urllib import on Python 3#4Remove dependency ondjango-autoconfigRegenerate with cookie cutter for Django standalone app, resulting in:
* Cleanup a few unused files
* Remove the example project which isn’t kept up to date
* Add a changelog
* Switch testing to use tox
* Switch from coveralls to codecov.ioTest views0.3.0 (2016-10-20)Drop support for Django 1.6 and 1.7Support Django 1.9Prepare Django 1.100.2.7 (2015-12-17)Add the app config for Django 1.7+0.2.6 (2015-12-07)Some Python 3 compatibilty fixesPrepare for Django 1.9 compatibility0.2.5 (2015-11-23)Django 1.8 compatibilityFix a few issues with Python 30.2.4 (2015-11-12)Doc improvementsDjango 1.7 compatibility0.2.3 (2015-10-23)Fix a crash with anonymous donor0.2.2 (2015-10-22)Mostly tests improvements0.2.0 (2015-10-19)Fix various unicode crashesFix that prevented the server from starting when config was being
loaded before the tables were created.Capture Donor name from JustGiving0.1.3 (2016-10-16)Fix a Unicode crash in models and providersRevert erroneous change insetup.py0.1.2 (2015-10-16)Admin improvementsInstallation fixes0.1.1 (2015-10-13)Fix packaging on PyPIDocs improvements0.0.2 (2015-10-12)Squash South migrationsAutoconfig enhancements0.0.1 (2015-10-12)First release on PyPI.