
Product
Introducing License Overlays: Smarter License Management for Real-World Code
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Configure email configuration in the admin.
Install with pip install django-dynamic-smtp
Add dynamic_smtp
and some dependencies to INSTALLED_APPS
:
INSTALLED_APPS = [
...,
"django_object_actions",
"tinymce",
"dynamic_smtp",
]
EMAIL_BACKEND = (
"django.core.mail.backends.console.EmailBackend"
if DEBUG
else "dynamic_smtp.email.DynamicSMPTEmailBackend"
)
./manage.py migrate
tinymce
. Example:TINYMCE_JS_URL = "https://cdnjs.cloudflare.com/ajax/libs/tinymce/7.0.1/tinymce.min.js"
TINYMCE_DEFAULT_CONFIG = {
"theme": "silver",
"height": 600,
"width": 700,
"resize": "both",
"plugins": "advlist,autolink,lists,link,image,charmap,print,preview,anchor,"
"searchreplace,visualblocks,code,fullscreen,insertdatetime,media,table,paste,"
"help,wordcount",
"license_key": "gpl",
}
See django-tinymce's documentation for more options.
# settings.py
...
DYNAMIC_SMPT_REGISTER_ADMIN = False
DYNAMIC_SMPT_EMAIL_CONFIGURATION_MODEL = "myapp.EmailConfiguration"
# myapp/models.py
from dynamic_smtp.models import AbstractEmailConfiguration
class EmailConfiguration(AbstractEmailConfiguration):
pass
# myapp/admin.py
from django.contrib import admin
from dynamic_smtp.models import AbstractEmailConfiguration
from .models import Emailconfiguration
@admin.register(EmailConfiguration)
class CustomModelAdmin(EmailConfigurationAdmin):
class Media:
css = {"all": ["myapp/style.css"]}
This package needs quite a few dependencies, considering its simplicity.
Django
beautifulsoup4
and lxml
: prepare text version of HTML emailsdjango-object-actions
: Button for email testdjango-tinymce
: HTML editing for signaturedjango-solo
: Use singleton modelAll contributions are welcome! To setup you environment:
pip install -r dev.requirements.txt
pre-commit install
FAQs
Configure email settings in the admin
We found that django-dynamic-smtp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.