From b6bbdf47911bc7f311043e151fec1807c08dea28 Mon Sep 17 00:00:00 2001 From: medmunds Date: Wed, 9 Mar 2016 20:27:44 -0800 Subject: [PATCH] The *package* name is "django-anymail" (not just "anymail") --- README.rst | 2 +- anymail/exceptions.py | 3 ++- docs/installation.rst | 4 ++-- docs/troubleshooting.rst | 3 ++- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/README.rst b/README.rst index 362d569..cb678a5 100644 --- a/README.rst +++ b/README.rst @@ -71,7 +71,7 @@ or any other supported ESP where you see "mailgun": .. 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``: diff --git a/anymail/exceptions.py b/anymail/exceptions.py index e2487d7..d4eada5 100644 --- a/anymail/exceptions.py +++ b/anymail/exceptions.py @@ -136,6 +136,7 @@ class AnymailSerializationError(AnymailError, TypeError): class AnymailImproperlyInstalled(ImproperlyConfigured, ImportError): def __init__(self, missing_package): message = "The %s package is required to use this backend, but isn't installed.\n" \ - "(Be sure to use `pip install anymail[]` with your desired backends)" % missing_package + "(Be sure to use `pip install django-anymail[]` " \ + "with your desired backends)" % missing_package super(AnymailImproperlyInstalled, self).__init__(message) diff --git a/docs/installation.rst b/docs/installation.rst index 56aed19..54a5803 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -17,13 +17,13 @@ E.g., for Anymail with Mailgun support: .. code-block:: console - $ pip install anymail[mailgun] + $ pip install django-anymail[mailgun] ...or with both Postmark and SendGrid support: .. code-block:: console - $ pip install anymail[postmark,sendgrid] + $ pip install django-anymail[postmark,sendgrid] .. _backend-configuration: diff --git a/docs/troubleshooting.rst b/docs/troubleshooting.rst index cc8e35d..73dad63 100644 --- a/docs/troubleshooting.rst +++ b/docs/troubleshooting.rst @@ -27,7 +27,8 @@ Figuring out what's wrong **Double-check common issues** * 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? (E.g., `ANYMAIL_MANDRILL_API_KEY`.) * Did you add ``'anymail'`` to the list of :setting:`INSTALLED_APPS` in settings.py?