Settings

DEFAULT_SETTINGS

DEFAULT_SETTINGS = {
    'POSITIONS': (
        (1, 'Leaderboard'),
        (2, 'Medium Rectangle'),
        (3, 'Button 1 (1)'),
        (4, 'Button 1 (2)'),
    ),
    'DEFAULT_TEMPLATE': 'newsletters/default.html',
    'ADVERTISEMENT_STORAGE': settings.DEFAULT_FILE_STORAGE,
    'FROM_EMAIL': 'no-reply@%s' % current_site.domain,
    'AUTO_CONFIRM': True,
    'EMAIL_NOTIFICATION_SUBJECT': '[%s] Newsletter Subscription Change' % current_site.name

}

Overriding default settings

In your settings.py file, create a dictionary named NEWSLETTER_SETTINGS. You only need to include keys for the specific settings you are going to change. For example, to change the default FROM_EMAIL:

NEWSLETTER_SETTINGS = {
    'FROM_EMAIL': 'our-newsletter-admin@example.com'
}

POSITIONS

Advertising positions available for scheduling. Consists of a tuple of int and string tuples.

Default: ((1, 'Leaderboard'), (2, 'Medium Rectangle'), (3, 'Button 1 (1)'), (4, 'Button 1 (2)'),)

DEFAULT_TEMPLATE

The default template to use when rendering a newsletter. The app looks for templates in the following order:

  1. newsletters/<newsletter-slug>.html
  2. newsletters/<category-slug>.html
  3. DEFAULT_TEMPLATE

Default: newsletters/default.html

FROM_EMAIL

The sender of the subscription change notification emails.

Default: no-reply@<current site domain>

AUTO_CONFIRM

Currently not working! It is meant to allow a user to click a confirmation email to subscribe/unsubscribe. Currently not working.

Default: True

EMAIL_NOTIFICATION_SUBJECT

The subject of the subscription change notification e-mail.

Default: [<current site name>] Newsletter Subscription Change