The *package* name is "django-anymail"

(not just "anymail")
This commit is contained in:
medmunds
2016-03-09 20:27:44 -08:00
parent c13ef4d5fa
commit b6bbdf4791
4 changed files with 7 additions and 5 deletions

View File

@@ -71,7 +71,7 @@ or any other supported ESP where you see "mailgun":
.. code-block:: console .. code-block:: console
$ pip install anymail[mailgun] # or anymail[postmark,sendgrid] or ... $ pip install django-anymail[mailgun] # or [postmark,sendgrid] or ...
2. Edit your project's ``settings.py``: 2. Edit your project's ``settings.py``:

View File

@@ -136,6 +136,7 @@ class AnymailSerializationError(AnymailError, TypeError):
class AnymailImproperlyInstalled(ImproperlyConfigured, ImportError): class AnymailImproperlyInstalled(ImproperlyConfigured, ImportError):
def __init__(self, missing_package): def __init__(self, missing_package):
message = "The %s package is required to use this backend, but isn't installed.\n" \ message = "The %s package is required to use this backend, but isn't installed.\n" \
"(Be sure to use `pip install anymail[<backend>]` with your desired backends)" % missing_package "(Be sure to use `pip install django-anymail[<backend>]` " \
"with your desired backends)" % missing_package
super(AnymailImproperlyInstalled, self).__init__(message) super(AnymailImproperlyInstalled, self).__init__(message)

View File

@@ -17,13 +17,13 @@ E.g., for Anymail with Mailgun support:
.. code-block:: console .. code-block:: console
$ pip install anymail[mailgun] $ pip install django-anymail[mailgun]
...or with both Postmark and SendGrid support: ...or with both Postmark and SendGrid support:
.. code-block:: console .. code-block:: console
$ pip install anymail[postmark,sendgrid] $ pip install django-anymail[postmark,sendgrid]
.. _backend-configuration: .. _backend-configuration:

View File

@@ -27,7 +27,8 @@ Figuring out what's wrong
**Double-check common issues** **Double-check common issues**
* Did you install Anymail with the ESPs you want available? * Did you install Anymail with the ESPs you want available?
(E.g., `pip install anymail[mailgun,sendgrid]` -- *not* just `pip install anymail`.) (E.g., `pip install django-anymail[mailgun,sendgrid]` --
*not* just `pip install django-anymail`.)
* Did you add any required settings for those ESPs to your settings.py? * Did you add any required settings for those ESPs to your settings.py?
(E.g., `ANYMAIL_MANDRILL_API_KEY`.) (E.g., `ANYMAIL_MANDRILL_API_KEY`.)
* Did you add ``'anymail'`` to the list of :setting:`INSTALLED_APPS` in settings.py? * Did you add ``'anymail'`` to the list of :setting:`INSTALLED_APPS` in settings.py?