How to check Django version

By | 22 November, 2013

Since we are in the version theme, here’s how to check what version of django is installed in your python:

From your python prompt:

>>> import django
>>> django.VERSION

you will get something like this:

$ (1,2,7, 'final', 0)

Versions depending on your installation.

Or you can type this on your command prompt (windows):

c:\whatever> python -c "import django; print(django.get_version())"

And you will get:

$ 1.2.7