mirror of
https://github.com/pacnpal/django-anymail.git
synced 2025-12-20 11:51:05 -05:00
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]
This commit is contained in:
@@ -94,10 +94,11 @@ or SparkPost or any other supported ESP where you see "mailgun":
|
|||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
INSTALLED_APPS = (
|
INSTALLED_APPS = [
|
||||||
...
|
# ...
|
||||||
"anymail"
|
"anymail",
|
||||||
)
|
# ...
|
||||||
|
]
|
||||||
|
|
||||||
ANYMAIL = {
|
ANYMAIL = {
|
||||||
# (exact settings here depend on your ESP...)
|
# (exact settings here depend on your ESP...)
|
||||||
|
|||||||
@@ -27,14 +27,15 @@ Configuring Django's email backend
|
|||||||
|
|
||||||
To use Anymail for sending email, edit your Django project's :file:`settings.py`:
|
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
|
.. code-block:: python
|
||||||
|
|
||||||
INSTALLED_APPS = (
|
INSTALLED_APPS = [
|
||||||
...
|
# ...
|
||||||
"anymail",
|
"anymail",
|
||||||
)
|
# ...
|
||||||
|
]
|
||||||
|
|
||||||
2. Add an :setting:`ANYMAIL` settings dict, substituting the appropriate settings for
|
2. Add an :setting:`ANYMAIL` settings dict, substituting the appropriate settings for
|
||||||
your ESP:
|
your ESP:
|
||||||
|
|||||||
Reference in New Issue
Block a user