Skip to content

Instantly share code, notes, and snippets.

@imhassantariq
Created January 16, 2020 09:44
Show Gist options
  • Save imhassantariq/12820233102e6187fc4902dd314dacf5 to your computer and use it in GitHub Desktop.
Save imhassantariq/12820233102e6187fc4902dd314dacf5 to your computer and use it in GitHub Desktop.
How to enable django email service in edX locally

To Enable Django Email Service Locally:

  • First you need valid Gmail Account
  • edX installed on your local system in docker

Steps to Follow:

  1. Go to devstack.py located at lms/env/ and cms/env.
  2. Find the EMAIL_BACKEND flag and change it to 'django.core.mail.backends.smtp.EmailBackend
  3. Add few more flags:
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = '587'
EMAIL_USE_TLS = True
EMAIL_HOST_USER = 'your email address'
EMAIL_HOST_PASSWORD = 'your password'
  1. (Optional) If you are using EDX_ACE you need to change some flags in lms.env.json and cms.env.json:
"ACE_CHANNEL_TRANSACTIONAL_EMAIL": "django_email",
"ACE_CHANNEL_DEFAULT_EMAIL": "django_email",
"ACE_ENABLED_CHANNELS": [
    "django_email"
],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment