Installation

To get started with Django Easy Email, follow these simple steps to install and configure it in your project:

  1. Install the package
pip install django-easy-email
  1. Add easy_email to your INSTALLED_APPS in settings.py:
INSTALLED_APPS = [
    ...
    'easy_email',
    ...
]
  1. Modify TEMPLATES settings to add loaders.
TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': [],
        # 'APP_DIRS': True, # important
        'OPTIONS': {
            'context_processors': [
                'django.template.context_processors.debug',
                'django.template.context_processors.request',
                'django.contrib.auth.context_processors.auth',
                'django.contrib.messages.context_processors.messages',
            ],
            # add loaders
            "loaders": [
                "easy_email.loaders.db_template_loader.DatabaseTemplateLoader",
                "django.template.loaders.app_directories.Loader",
                "django.template.loaders.filesystem.Loader",
            ]
        },
    },
]
  1. Apply database migrations:
python manage.py migrate
  1. Learn how to use Django Easy Email effectively in the Usage Guide

For a comprehensive list of all available settings options, please refer to the Settings Documentation