How to find the Django version

There are multiple ways to find Django Version

Option 1

$ pip freeze | grep Django

Another option to login to python shell and query for django version

Option 2

$ python
Python 3.9.5 (default, May  4 2021, 03:29:30)
[Clang 11.0.0 (clang-1100.0.33.17)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import django
>>> django.VERSION
(3, 1, 1, 'final', 0)

Option 3

Execute like a bash option -c , -c option allows to execute commands as string

$ python -c "import django; print(django.get_version())"

Option 4

Using django-admin command you can get django version

$ django-admin version
3.1.1

$ # Works with .py like django-admin.py version
$ django-admin.py version
3.1.1

Option 5

You can make it to print version before starting the server

$ python manage.py runserver --version