Registry / web-framework / django-mjml

django-mjml

JSON →
library1.5pypypi✓ verified 84d ago

Django integration for MJML, the responsive email framework. Currently at v1.5, supports Django 6.0 and Python >=3.9. Release cadence is irregular, roughly yearly updates.

pip install django-mjml
INSTALL
IMPORT
SIG · DJANGO-MJML
D
django-mjml
web-frameworkpythonv1.5
Install
3.4s avg
Import
—
Disk
65MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v1.5 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 66.3MB
glibc
py 3.10–3.95 runs
installs and imports cleanly · install 3.4s · import 0.000s · 67MB
65MB installed
● package 65MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

django
✓ from mjml import django
✗ from django_mjml import mjml

Basic setup: add 'django_mjml' to INSTALLED_APPS, configure backend, and use the mjml template tag.

# settings.py INSTALLED_APPS = [ ... 'django_mjml', ] MJML_BACKEND_MODE = 'cmd' # or 'http' or 'tcp' MJML_EXEC_CMD = 'mjml' # local node mjml command # In your template: {% load mjml %} {% mjml %} <mjml> <mj-body> <mj-section> <mj-column> <mj-text>Hello {{ name }}!</mj-text> </mj-column> </mj-section> </mj-body> </mjml> {% endmjml %}
Debug
Known issues
breakingVersion 1.0 dropped support for Python 2.7 and Django versions older than 2.2. Also moved MJML TCP-Server to a separate repository.
fix
Upgrade to Python >=3.9 and Django >=3.2 (current minimums). If you relied on the bundled TCP server, migrate to https://github.com/danihodovic/mjml-server.
affects: >=1.0
breakingIn v1.5, Python 3.6, 3.7, and 3.8 are no longer supported. Also MJML versions older than 4.14.1 have been removed from tests.
fix
Ensure your Python version is >=3.9 and your MJML binary is at least 4.14.1.
affects: >=1.5
Upgrade
Version history
1.5latest on PyPI · released Dec 7, 2025
Audit
Dependencies
requestsoptionalUsed for HTTP API mode to send MJML rendering requests to a server
Agent activity
24 hits · last 30 days
node
22
OpenAI (training)
1
Resources
django-mjml — pip install django-mjml · libregistry