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.1

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.1
File Size Uploaded
django_template_oxide-0.1.1.tar.gz 6.7 MB Details

Built distributions (wheels)

Table of built distributions (wheels) for django-template-oxide 0.1.1
File
django_template_oxide-0.1.1-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.1-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.1-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.1-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.1-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.1-cp314-cp314-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 macOS 11.0+ ARM64 Details

Total release size: 16.1 MB

Release files / django_template_oxide-0.1.1.tar.gz

Download URL django_template_oxide-0.1.1.tar.gz
Size 6.7 MB
Tags Source
SHA-256 checksum
How to use checksums
42c676d98910589735e1f4fe5f365b29405cf1ce71c1f374f7c4b4b0d026629b
BLAKE2b-256 checksum
How to use checksums
f68f2d52ec33818780168f590b61219e8d63e402f54f83b55ec59fab2a3c9646
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 10, 2026.

Transparency log

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

Download URL django_template_oxide-0.1.1-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
3be038066882ba32c4207409dea5ce6eab24335a2c84a3d130e6c4bb3f0d328d
BLAKE2b-256 checksum
How to use checksums
8bace911f171e4db5d8f5284f8bdb77b3e1009de930955d9b26cc2ebd86fa0e4
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 10, 2026.

Transparency log

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

Download URL django_template_oxide-0.1.1-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
06d4d91f3ae1c3f7f8038dc31d114187e90303f3cd246c208f17d517430008b3
BLAKE2b-256 checksum
How to use checksums
1675c781e8e2c0284ee9925809539e1873f7a52e5f1f0a247f22d97eea89f1a1
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 10, 2026.

Transparency log

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

Download URL django_template_oxide-0.1.1-cp314-cp314t-macosx_11_0_arm64.whl
Size 1.2 MB
Tags CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
f971d7a36b154fa37b33ba681affd9050724d2c3859536fa157c3ea9e499dad6
BLAKE2b-256 checksum
How to use checksums
3f3f0c1990adbafeae80daf4071d87d426d6c238fae4c2970274c9c5af129faf
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 10, 2026.

Transparency log

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

Download URL django_template_oxide-0.1.1-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
c83c459ab3e3a1e739910347ebb99fa2714a607cfe387540edbf6b1f42af3eed
BLAKE2b-256 checksum
How to use checksums
9f3979dc430915a8c85aa85c3220501d59289ec63e0a6accd3d01b28f9ccbdd2
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 10, 2026.

Transparency log

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

Download URL django_template_oxide-0.1.1-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
dcd506e5b41d68cddddf4327b48426fe7c803356d1244ad4401241f0141683bc
BLAKE2b-256 checksum
How to use checksums
1c37ef41df31fed41e6aa65cc986b44816c8fe4e22ae7fe7fc763094ea54767c
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 10, 2026.

Transparency log

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

Download URL django_template_oxide-0.1.1-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
55fd3d47ae6223bd1451f100e136864f31acf07bcf27185f0f5f4e7a6438a7d2
BLAKE2b-256 checksum
How to use checksums
13be0f4646903bb95fb8fda3e146f1fb49695fea256442549b0ce4705251e6f7
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 10, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.1 This release

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