Django MJML Template
Use MJML in your Django templates. A very small and fast implementation.
About
This package leverages MRML, a Rust implementation of MJML, using MRML's official Python bindings.
If you want to run MJML itself as a separate HTTP server endpoint for conversion, use django-mjml instead. It uses the same mjml template tag.
What is MJML?
From the documentation of the project:
MJML is a markup language designed to reduce the pain of coding a responsive email. Its semantic syntax makes it easy and straightforward and its rich standard components library speeds up your development time and lightens your email codebase. MJML’s open-source engine generates high quality responsive HTML compliant with best practices.
Requirements
- Python >= 3.7
- Django >= 1.11
Installation
To install the package, run the following command:
pip install django-mjml-template
Then update your settings.py:
INSTALLED_APPS = (
...
'django_mjml_template',
)
Usage
Load mjml in your django template and use mjml tag that will compile MJML to HTML:
{% load mjml %}
{% mjml %}
<mjml>
<mj-body>
<mj-section>
<mj-column>
<mj-text>Hello {{ user_name }}!</mj-text>
</mj-column>
</mj-section>
</mj-body>
</mjml>
{% endmjml %}
Contributions
Contributions, bug reports, and suggestions are welcome! Feel free to open an issue or submit a pull request.
Metadata
Release files for django-mjml-template 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django_mjml_template-1.0.1.tar.gz | 3.3 kB | With provenance | Details for django_mjml_template-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_mjml_template-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for django_mjml_template-1.0.1-py3-none-any.whl |
Total release size: 7.6 kB
Release files / django_mjml_template-1.0.1.tar.gz
| Download URL | django_mjml_template-1.0.1.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6308429d172b41539cc77f56be9018f8ec9cfdfcc88b178ce53e1390d0a70219
|
|
BLAKE2b-256 checksum How to use checksums |
ec2ab17c8baa989cc157f095c5fdcc8fefe4e087f9dfebc2694f8300c78c38de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 1, 2026.
Transparency logRelease files / django_mjml_template-1.0.1-py3-none-any.whl
| Download URL | django_mjml_template-1.0.1-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9b1e93798af8db07754da9d4cc5e1e8d0dc7a2b34c2dbe8e397b9c1caf0c3649
|
|
BLAKE2b-256 checksum How to use checksums |
76654f50780c85ec6ee1846a79e0b4a75a4bc4fa619e203ff602f4e671a2f543
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 1, 2026.
Transparency logSecurity for django-mjml-template 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for django_mjml_template-1.0.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 1, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.