Skip to main content

This package provides the base pieces required to accept donations on an Armstrong site.

armstrong.apps.donations provides everything you need to accept donations except templates. It defaults to Authorize.net for its payment processing, but all payment processing can be configured.

Usage

armstrong.apps.donations ships with a default set of URL routes that may work for you without any tweaking. Simply add the URL configuration you would like and include armstrong.apps.donations.urls. For example, you could configure it to respond to /donate/ like this inside your main urls module.

# This assumes you already have a urlpatterns variable
urlpatterns += patterns('',
    url(r'^/donate/', include('armstrong.apps.donations.urls')),
)

This adds a DonationFormView view for you at /donate/ and a thanks page via ThanksView at /donate/thanks/. You need to add templates for each. The default templates are:

  • armstrong/donations/donation.html

  • armstrong/donations/thanks.html

You need to use the donation_form context value to display the DonationForm inside the DonationFormView.

Installation & Configuration

You can install the latest release of armstrong.apps.donations using pip:

pip install armstrong.apps.donations

Make sure to add armstrong.apps.donations and armstrong.apps.content to your INSTALLED_APPS. You can add this however you like. This works as a copy-and-paste solution:

INSTALLED_APPS += ["armstrong.apps.donations", ]

Once installed, you have to run either syncdb, or migrate if you are using South.

You can configure the payment backend using the ARMSTRONG_DONATIONS_BACKEND setting. It defaults to:

ARMSTRONG_DONATIONS_BACKEND = "armstrong.apps.donations.backends.AuthorizeNetBackend"

This utilizes armstrong.utils.backends for its backend processing.

State of Project

Armstrong is an open-source news platform that is freely available to any organization. It is the result of a collaboration between the Texas Tribune and Bay Citizen, and a grant from the John S. and James L. Knight Foundation.

To follow development, be sure to join the Google Group.

armstrong.apps.donations is part of the Armstrong project. You’re probably looking for that.

Metadata

Release files for armstrong.apps.donations 1.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for armstrong.apps.donations 1.2.3
File Size Uploaded
armstrong.apps.donations-1.2.3.tar.gz 21.5 kB Details

Release files / armstrong.apps.donations-1.2.3.tar.gz

Download URL armstrong.apps.donations-1.2.3.tar.gz
Size 21.5 kB
Tags Source
SHA-256 checksum
How to use checksums
68e0ce61ad8d4c21d90ceb7ae1cc8d97a1c65d908848270a18afde580ef6e4b6
BLAKE2b-256 checksum
How to use checksums
a9babe243e88795a8a0b5109f0fccbc857d6a161624e662b1a5787d3da194234
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.2.3 This release

1 release file

1.2.2

1 release file

1.2.1

1 release file

1.2.0

1 release file

1.1.0

1 release file

0.12.3

1 release file

0.12.2

1 release file

0.12.1

1 release file

0.12.0

1 release file

0.11.1

1 release file

0.11.0

1 release file

0.10.0

1 release file

0.9.0

1 release file

0.8.0

1 release file

0.7.0

1 release file

0.6.1

1 release file

0.6.0

1 release file

0.5.1

1 release file

0.5.0

1 release file

0.4.0

1 release file

0.3.0

1 release file

0.2.0

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page