Installation¶
To get started with Django Easy Email, follow these simple steps to install and configure it in your project:
- Install the package
pip install django-easy-email
- Add
easy_emailto yourINSTALLED_APPSinsettings.py:
INSTALLED_APPS = [
...
'easy_email',
...
]
- Modify
TEMPLATESsettings 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",
]
},
},
]
- Apply database migrations:
python manage.py migrate
- Learn how to use
Django Easy Emaileffectively in the Usage Guide
For a comprehensive list of all available settings options, please refer to the Settings Documentation