From 1cced97f655b1682d03d4fb484cd909ecb02a644 Mon Sep 17 00:00:00 2001 From: medmunds Date: Tue, 1 Nov 2016 11:36:50 -0700 Subject: [PATCH] Docs: clarify INSTALLED_APPS * Trailing comma after "anymail" (see #40) * Note order doesn't matter * Change tuple to list (match examples to Django 1.9+ project template) [ci skip] --- README.rst | 9 +++++---- docs/installation.rst | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/README.rst b/README.rst index aabd192..99f6d15 100644 --- a/README.rst +++ b/README.rst @@ -94,10 +94,11 @@ or SparkPost or any other supported ESP where you see "mailgun": .. code-block:: python - INSTALLED_APPS = ( - ... - "anymail" - ) + INSTALLED_APPS = [ + # ... + "anymail", + # ... + ] ANYMAIL = { # (exact settings here depend on your ESP...) diff --git a/docs/installation.rst b/docs/installation.rst index 7d14cee..0144c3b 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -27,14 +27,15 @@ Configuring Django's email backend To use Anymail for sending email, edit your Django project's :file:`settings.py`: -1. Add :mod:`anymail` to your :setting:`INSTALLED_APPS`: +1. Add :mod:`anymail` to your :setting:`INSTALLED_APPS` (anywhere in the list): .. code-block:: python - INSTALLED_APPS = ( - ... + INSTALLED_APPS = [ + # ... "anymail", - ) + # ... + ] 2. Add an :setting:`ANYMAIL` settings dict, substituting the appropriate settings for your ESP: