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_FIELDSallows the user to customise what fields are displayed on the form. This must be a listNEWSLETTER_FORM_FIELD_PLACEHOLDERSallows the user to customise the field placeholder text. This must be a dict containing the fieldnamesNEWSLETTER_FORM_REQUIRED_FIELDSallows the user to customise what fields are required on the form. This must be a listNEWSLETTER_FORM_LABELSallows the user to customise what the field labels are on the form. This must be a dict of field names and their corresponding labelNEWSLETTER_FORM_WIDGETSallows the user to customise what the field widgets are on the form. This must be a dict of field names and their corresponding widgetNEWSLETTER_HTTP_REFERERallows the user to customise the success url and return the user to the referer page after submission
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| giant_newsletter-0.3.5.tar.gz | 7.1 kB | Without provenance | Details for giant_newsletter-0.3.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| giant_newsletter-0.3.5-py3-none-any.whl | Python 3 | none | any | Details for giant_newsletter-0.3.5-py3-none-any.whl |
Total release size: 19.8 kB
Security for giant-newsletter 0.3.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.