dj-email-url
Use an URL to configure email backend settings in your Django Application.
Decision gist · record as of 2026-08-14
Yes, if you use Django and want to externalize email configuration to environment variables. The package is stable, dependency-free, and permissively licensed. However, note that maintenance is dormant (no release since September 2022); verify compatibility with your Django and Python versions before adopting, especially if you require recent Django LTS releases.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction with no runtime dependencies.
- Maintenance is dormant—last release was 1420 days ago, though the repository remains active with a recent commit in June 2024.
License · maintenance · safety
permissive license (permissive) — Licensed under BSD-2-Clause (source code), CC-BY-4.0 (documentation), and CC0-1.0 (config files). Permissive terms allow commercial use with minimal restrictions.
last release 2022-09-24 (1420 days) · last repo commit 2024-06-10 · 64 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 220,339 downloads/mo, #9,303 on PyPI
Alternatives
Verify before relying
import dj_email_url
email_config = dj_email_url.config() # reads EMAIL_URL env var
# or parse directly:
email_config = dj_email_url.parse('smtp://user:pass@localhost')
vars().update(email_config) # apply to Django settings- Whether the package works with Django versions released after 2022-09-24
- Compatibility with Python 3.11+ (classifiers list only up to 3.10)
What it is and what it does
dj-email-url parses email backend configuration from URL-style environment variables and returns a dictionary of Django EMAIL_* settings. It eliminates the need to manually set EMAIL_HOST, EMAIL_PORT, EMAIL_USE_TLS, and related settings by encoding them into a single EMAIL_URL variable, following the 12-factor application pattern.
The package supports multiple backends: SMTP (local or remote with STARTTLS), SMTP-over-SSL, file-based, console, in-memory, and dummy backends. It handles URL percent-encoding for special characters in passwords and allows optional query parameters to set EMAIL_TIMEOUT, SERVER_EMAIL, and DEFAULT_FROM_EMAIL. With no runtime dependencies, it integrates directly into Django settings.py with minimal setup.
Use it for
- Store email configuration in environment variables for development, staging, and production without code changes
- Configure SendGrid or other third-party SMTP relays by parsing submission:// URLs with credentials
- Use file or console backends for local development by switching EMAIL_URL without modifying settings
- Set email timeout and origin addresses (SERVER_EMAIL, DEFAULT_FROM_EMAIL) via query parameters in a single URL
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you use Django and want to externalize email configuration to environment variables.
The package is stable, dependency-free, and permissively licensed. However, note that maintenance is dormant (no release since September 2022); verify compatibility with your Django and Python versions before adopting, especially if you require recent Django LTS releases.
Install
dj-email-url on PyPI
Before you install
Low install friction with no runtime dependencies. Maintenance is dormant—last release was 1420 days ago, though the repository remains active with a recent commit in June 2024.
License in practice
Licensed under BSD-2-Clause (source code), CC-BY-4.0 (documentation), and CC0-1.0 (config files). Permissive terms allow commercial use with minimal restrictions.
Quickstart
import dj_email_url
email_config = dj_email_url.config() # reads EMAIL_URL env var
# or parse directly:
email_config = dj_email_url.parse('smtp://user:pass@localhost')
vars().update(email_config) # apply to Django settings
Verify before relying
- Whether the package works with Django versions released after 2022-09-24
- Compatibility with Python 3.11+ (classifiers list only up to 3.10)
Package facts
| License | permissive license permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Dormant 1,420 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 220,339 / month, #9,303 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Environment :: Web EnvironmentIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Internet :: WWW/HTTP :: Dynamic ContentTopic :: Software Development :: Libraries :: Python Modules |
Evidence: dj_email_url-1.0.6-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “django email configuration url”
- dj-email-urlConfigures Django email backends from environment variables using…
- django-environLoads and parses environment variables from .env files to configure…
- dj-database-urlParses DATABASE_URL environment variables into Django database…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also django-naomi · django-environ · Flask-Mail · django-anymail · django-celery-email · django-ses · django-post_office · emails · django-templated-mail · dsnparse