Templates¶
newsletters/base.html¶
All other templates extend this template.
If your project’s primary content block is not called content, override newsletters/base.html and include {% block content %}{% endblock %} within the name of your primary content block.
For example, if your primary content block is called core_content, override newsletters/base.html to be:
{% extends 'base.html' %}
{% block core_content %}
{% block content %}{% endblock %}
{% endblock %}
The change allows all the other default templates to at least work.
newsletters/list.html¶
This template displays a list of available newsletters.
Context:
newslettersa list of Newsletter objectsformthe form for signing up for a bunch of newsletters
newsletters/manage.html¶
This template allows bulk subscription management for a user.
Context:
newslettersa list of Newsletter objectsformthe form for signing up for a bunch of newslettersmessagesa list of success or failure messages relating to the last action.
newsletters/subscribe.html¶
The successful result of the subscription to a specific newsletter.
Context:
newsletterthe Newsletter to which the user subscribed
newsletters/unsubscribe.html¶
The successful result of an unsubscription to a specific newsletter.
Context:
newsletterthe Newsletter to which the user unsubscribed
newsletters/default.html¶
The default template for rendering a newsletter.
newsletters/notification_email.txt¶
The email sent to users notifying them of changes in their subscription status.
Context:
unsubscriptionsa list ofNewsletterobjects from which the user unsubscribed.subscriptionsa list ofNewsletterobjects to which the user subscribed.sitethe currentSiteobject.emailthe email of the subscriber.