Skip to main content
https://badge.fury.io/py/jinja2-python-version.svg https://travis-ci.org/jmfederico/jinja2-python-version.svg?branch=master

A Jinja extension that creates a global variable with Django version information for your Jinja2 templates:

Usage

$ pip install jinja2-django-version
from jinja2 import Environment

env = Environment(extensions=['jinja2_django_version.DjangoVersionExtension'])

# 2.0
template = env.from_string("{{ django_version }}")

# 2.0
template = env.from_string("{{ django_version.minor }}")

# 2
template = env.from_string("{{ django_version.major }}")

# 2.0.2
template = env.from_string("{{ django_version.micro }}")

template.render()

Release files for jinja2-django-version 1.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 jinja2-django-version 1.1.2
File Size Uploaded
jinja2-django-version-1.1.2.tar.gz 3.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for jinja2-django-version 1.1.2
File Interpreter ABI Platform
jinja2_django_version-1.1.2-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 6.4 kB

Release files / jinja2-django-version-1.1.2.tar.gz

Download URL jinja2-django-version-1.1.2.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b216c1c6996f87ef6e906b4f396d52202f68dc7609ea01435e185d677e285326
BLAKE2b-256 checksum
How to use checksums
a9cb09ddbc368ad7575ce35e0d9b4a207ca626bc73ebf674a3f9568b24ab4a8b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/0.12.16 CPython/3.7.4 Darwin/18.7.0

Release files / jinja2_django_version-1.1.2-py2.py3-none-any.whl

Download URL jinja2_django_version-1.1.2-py2.py3-none-any.whl
Size 3.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
fa18412e35b4279a154703372c9a862c414f6efa43017352dec3acfc2e54a61b
BLAKE2b-256 checksum
How to use checksums
d75fc6cc0456dfdc57ae671766d981036eb171a42734c5a1283a059f0779fb95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/0.12.16 CPython/3.7.4 Darwin/18.7.0

Release history Release notifications | RSS feed

This release

1.1.2 This release

2 release files

1.1.1

2 release files

1.1.0

1 release file

1.0.0

1 release file

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