Skip to main content

Giant Newsletter

A re-usable package which can be used in any project that requires a generic Newletter app.

This will include the basic formatting and functionality such as model creation via the admin and email sending.

Installation

To install with the package manager, run:

$ poetry add giant-newsletter

You should then add "newsletter" to the INSTALLED_APPS in your settings file and to the Makefile.

In base.py there should also be a DEFAULT_FROM_EMAIL and a DEFAULT_TO_EMAIL. This is used by the email sending method.

Context Processor

If you wish to use the Contact form with the context processor you will need to add newsletter.context_processors.subscription_form into the TEMPLATES context processors list. This will allow you to access the form in templates.

Configuration

  • NEWSLETTER_FORM_FIELDS allows the user to customise what fields are displayed on the form. This must be a list
  • NEWSLETTER_FORM_FIELD_PLACEHOLDERS allows the user to customise the field placeholder text. This must be a dict containing the fieldnames
  • NEWSLETTER_FORM_REQUIRED_FIELDS allows the user to customise what fields are required on the form. This must be a list
  • NEWSLETTER_FORM_LABELS allows the user to customise what the field labels are on the form. This must be a dict of field names and their corresponding label
  • NEWSLETTER_FORM_WIDGETS allows the user to customise what the field widgets are on the form. This must be a dict of field names and their corresponding widget
  • NEWSLETTER_HTTP_REFERER allows the user to customise the success url and return the user to the referer page after submission

Release files for giant-newsletter 0.3.5

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

Source distribution (sdist)

Source distribution for giant-newsletter 0.3.5
File Size Uploaded
giant_newsletter-0.3.5.tar.gz 7.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for giant-newsletter 0.3.5
File Interpreter ABI Platform
giant_newsletter-0.3.5-py3-none-any.whl Python 3 none any Details

Total release size: 19.8 kB

Release files / giant_newsletter-0.3.5.tar.gz

Download URL giant_newsletter-0.3.5.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
98dbec7c67d965d5bd719d2aa7e5b378df5f933a0ac3d6d0e8a783391980e60e
BLAKE2b-256 checksum
How to use checksums
7da337aea2869a78f01cc5c468ffd7b56cd1f480e50c8057cce9beda6420135b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.0 CPython/3.11.3 Darwin/22.4.0

Release files / giant_newsletter-0.3.5-py3-none-any.whl

Download URL giant_newsletter-0.3.5-py3-none-any.whl
Size 12.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f94056a6f669725164e9d7e0224043b1685d8a9f647bcbe45ab564673970f41a
BLAKE2b-256 checksum
How to use checksums
a97fd0ead5c2f00d42768e5c633e7d2e3aced8e55519fe81b31775bdd62ce5ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.0 CPython/3.11.3 Darwin/22.4.0

Release history Release notifications | RSS feed

This release

0.3.5 This release

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

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