django-notify-signup
django_notify_signup
sends an email notification for all user registrations. Celery is used to ensure email is sent outside of the webserver's request.
Installation
- Install the package
pip install django_notify_signup
-
Add
'django_notify_signup'
toINSTALLED_APPS
-
Make sure there are email addresses in the Django
ADMINS
setting
https://docs.djangoproject.com/en/1.11/ref/settings/#std:setting-ADMINS
- Configure django project to send email
https://docs.djangoproject.com/en/1.11/ref/settings/#email-host
Settings (Optional)
Disable signup notifications. Recommended for running tests.
# settings.py
if 'test' in sys.argv:
DISABLE_SIGNUP_NOTIFY = True