A small reusable package that adds a Newsletter app to a project
A re-usable package which can be used in any project that requires a generic
This will include the basic formatting and functionality such as model creation via the admin and email sending.
To install with the package manager, run:
$ poetry add giant-newsletter
You should then add
"newsletter" to the
base.py and to the
base.py there should also be a
DEFAULT_FROM_EMAIL and a
DEFAULT_TO_EMAIL. This is used by the email sending method.
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.
NEWSLETTER_FORM_FIELDSallows the user to customise what fields are displayed on the form. This must be a list
NEWSLETTER_FORM_FIELD_PLACEHOLDERSallows the user to customise the field placeholder text. This must be a dict containing the fieldnames
NEWSLETTER_FORM_REQUIRED_FIELDSallows the user to customise what fields are required on the form. This must be a list
NEWSLETTER_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 label
NEWSLETTER_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 widget
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size giant_newsletter-0.2.1-py3-none-any.whl (10.1 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size giant-newsletter-0.2.1.tar.gz (6.5 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for giant_newsletter-0.2.1-py3-none-any.whl