Check version of Django code example
Example 1: django version check
python -m django --version
Example 2: how to check if django is installed in ubuntu
$ django-admin.py version
Example 3: how to check django version
>>> import django
>>> django.VERSION
(2, 0, 0, 'final', 0)
Example 4: Check version of Django
$ python -m django --version