Skip to main content

Version checking library.

Project description

django-nine - version checking library for Django.

PyPI Version Supported Python versions Build Status Documentation Status GPL-2.0-only OR LGPL-2.1-or-later Coverage


  • Python 3.7, 3.8, 3.9 and 3.10.

  • Django 1.5, 1.6, 1.7, 1.8, 1.9, 1.10, 1.11, 2.0, 2.1, 2.2, 3.0, 3.1, 3.2, 4.0 and 4.1.


Documentation is available on Read the Docs.


Install latest stable version from PyPI:

pip install django-nine

Or latest stable version from GitHub:

pip install


Get Django versions

In code

For example, if Django version installed in your environment is 1.7.4, then the following would be true.

from django_nine import versions

versions.DJANGO_1_7  # True
versions.DJANGO_LTE_1_7  # True
versions.DJANGO_GTE_1_7  # True
versions.DJANGO_GTE_1_8  # False
versions.DJANGO_GTE_1_4  # True
versions.DJANGO_LTE_1_6  # False

In templates

With use of context processors

Add nine.context_processors.versions to your context processors.

TEMPLATES[0]['OPTIONS']['context_processors'] += \

Or if you are using an old version of Django:

TEMPLATE_CONTEXT_PROCESSORS += ['django_nine.context_processors.versions']


Simply type:


Or use tox:


Or use tox to check specific env:

tox -e py37

Or run Django tests:

./ test nine --settings=settings.testing


GPL-2.0-only OR LGPL-2.1-or-later


For any security issues contact me at the e-mail given in the Author section. For overall issues, go to GitHub.


Artur Barseghyan <>

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-nine-0.2.7.tar.gz (20.8 kB view hashes)

Uploaded source

Built Distribution

django_nine-0.2.7-py2.py3-none-any.whl (25.4 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page