Skip to main content

django-template-oxide

A Rust implementation of Django's template engine. Add it as a TEMPLATES backend and your templates render through Rust instead of Python, with the same output, the same exceptions, and the same error messages as stock Django.

It passes 1529 of Django 6.1's own 1530 template_tests (one is skipped on case-insensitive file systems), plus a parity suite that renders every built-in filter, tag, lookup, and localization case through both engines and requires identical results.

This project was pair-built with Claude. See the docs for what that means for the code.

Install

pip install django-template-oxide

Requires Python 3.14+ and Django 6.0+. Wheels are published for Linux (x86_64 and arm64) and macOS (Apple Silicon), for both the regular and free-threaded builds of CPython 3.14. See Installing to build from source.

Use

TEMPLATES = [
    {
        "BACKEND": "django_template_oxide.backend.OxideTemplates",
        "DIRS": [...],
        "APP_DIRS": True,
        "OPTIONS": {...},
    },
]

Nothing else changes: render, get_template, {% extends %}, {% include %}, and custom tag libraries work as before.

Performance

Time per render or compile. Smaller is better.

Workload Oxide django-rusty-templates Stock Django
Full table, 50 rows 35.4 µs 368.2 µs 758.1 µs
Date filters, 50 rows 34.7 µs 454.7 µs 717.2 µs
{% url %}, 50 rows 217.3 µs 248.3 µs 360.1 µs
{% extends %} with three blocks 10.8 µs not supported 122.5 µs
Django admin index page 423.6 µs not supported 536.5 µs
Compile, 500 rows 4.08 ms 174.1 ms 25.4 ms

Across 50 workloads, oxide averages 6.4× faster than stock Django and 3.4× faster than django-rusty-templates on the 32 workloads that engine can run. Measured on a MacBook Pro (Apple M5 Max, 64 GB, macOS 27.0.1) with the regular CPython 3.14 build; the free-threaded build gives the same results to within a few percent, and on it eight threads render about 4.9 times as many pages per second as one. The full results, the software versions, and how to reproduce them are in Performance.

Documentation

License

MIT. See LICENSE.

Metadata

Release files for django-template-oxide 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-template-oxide 0.1.2
File Size Uploaded
django_template_oxide-0.1.2.tar.gz 6.7 MB Details

Built distributions (wheels)

Table of built distributions (wheels) for django-template-oxide 0.1.2
File
django_template_oxide-0.1.2-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ x86-64 Details
django_template_oxide-0.1.2-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ ARM64 Details
django_template_oxide-0.1.2-cp314-cp314t-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64 Details
django_template_oxide-0.1.2-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.17+ x86-64 Details
django_template_oxide-0.1.2-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.14 CPython 3.14 Linux glibc 2.17+ ARM64 Details
django_template_oxide-0.1.2-cp314-cp314-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 macOS 11.0+ ARM64 Details

Total release size: 16.2 MB

Release files / django_template_oxide-0.1.2.tar.gz

Download URL django_template_oxide-0.1.2.tar.gz
Size 6.7 MB
Tags Source
SHA-256 checksum
How to use checksums
6bac54c6797f68b38d55d6e0747898d7cc04e9f6fe6f0f09844a18d543b7fc9a
BLAKE2b-256 checksum
How to use checksums
ad901fdee667f5cdf1d604a228cb4b62d71c617cbc3b9d0bfe5651aec2ad00e6
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 Oct 12, 2026.

Transparency log

Release files / django_template_oxide-0.1.2-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL django_template_oxide-0.1.2-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.8 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
e04bbd92597086ebd03e4170abff3b43795af382f2ac1d8d977b50b718dfdefc
BLAKE2b-256 checksum
How to use checksums
5178a4ac807524723ef8b24ef27107bf301a72b1c1104df50ea5479cf8d151bc
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 Oct 12, 2026.

Transparency log

Release files / django_template_oxide-0.1.2-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL django_template_oxide-0.1.2-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 1.7 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
df9e5329ebe22c585b75aa563e32f639745ac2116bd7752dc9d03b96a78c2467
BLAKE2b-256 checksum
How to use checksums
1c3bc17ce0135660a0f8bb41d1aacd15ec15be79bd61e2aa131af6a8002d4d32
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 Oct 12, 2026.

Transparency log

Release files / django_template_oxide-0.1.2-cp314-cp314t-macosx_11_0_arm64.whl

Download URL django_template_oxide-0.1.2-cp314-cp314t-macosx_11_0_arm64.whl
Size 1.3 MB
Tags CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
cf6ebc826627d69bd4ca8f1f524402a7d21f8773715b56769ea12b643dd368bb
BLAKE2b-256 checksum
How to use checksums
f8aae074092e6ea3222688751e2a5b43b2d86e36cf927fd5fe731b89bd87fb11
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 Oct 12, 2026.

Transparency log

Release files / django_template_oxide-0.1.2-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL django_template_oxide-0.1.2-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.8 MB
Tags CPython 3.14 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
a26bf08b7e7641714cb2e3edfb0e27bd359e2ef98f463563d8c00925b87b9c28
BLAKE2b-256 checksum
How to use checksums
f174a46f21efa204c299cb911b99bcd4d2f9fff759f3518cb16671f9b2882e94
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 Oct 12, 2026.

Transparency log

Release files / django_template_oxide-0.1.2-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL django_template_oxide-0.1.2-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 1.7 MB
Tags CPython 3.14 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
5e8f8139be8b2ad92f0cd2f519eaf2aade84fb1878a982696d7a8878651326c7
BLAKE2b-256 checksum
How to use checksums
6309813d4b0356f08e40f3508b8775abd62b494d7bb0e037054ae19b33fea165
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 Oct 12, 2026.

Transparency log

Release files / django_template_oxide-0.1.2-cp314-cp314-macosx_11_0_arm64.whl

Download URL django_template_oxide-0.1.2-cp314-cp314-macosx_11_0_arm64.whl
Size 1.3 MB
Tags CPython 3.14 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
bab13f3d2702bfef72af1eb3c3a831a53104e2fce0cf3475fa8ccff94ce943f5
BLAKE2b-256 checksum
How to use checksums
fc7e822685c09da5472955870fa074ef06c703676c684b0a0859efe56ecf8b7c
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 Oct 12, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.2 This release

7 release files

0.1.1

7 release files

0.1.0

7 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page