From a80475eb30c16ad8741aa82ceba85ecd1e9371e3 Mon Sep 17 00:00:00 2001 From: shireenrao Date: Tue, 24 May 2016 08:23:32 -0400 Subject: [PATCH] Added a comment on mailhog for local docker development --- docs/developing-locally-docker.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/developing-locally-docker.rst b/docs/developing-locally-docker.rst index 03e9221c5..ed110d01d 100644 --- a/docs/developing-locally-docker.rst +++ b/docs/developing-locally-docker.rst @@ -86,6 +86,19 @@ To migrate your app and to create a superuser, run:: Here we specify the ``django`` container as the location to run our management commands. +Setup your email backend +~~~~~~~~~~~~~~~~~~~~~~~~ + +django-allauth sends an email to verify users (and superusers) after signup and login (if they are still not verified). To send email you need to `configure your email backend`_ +.. _configure your email backend: http://docs.djangoproject.com/en/1.9/topics/email/#smtp-backend + +In development you can (optionally) use MailHog_ for email testing. MailHog is added as docker-container. To use MailHog:: + +1. Make sure, that ``mailhog`` docker container is up and running +2. Open your browser and go to the IP address for your docker machine on port 8025 ( e.g. ``http://123.456.789.012:8025`` ) + +.. _Mailhog: https://github.com/mailhog/MailHog/ + Production Mode ~~~~~~~~~~~~~~~