command django version code example
Example 1: how to check if django is installed in ubuntu
$ django-admin.py version
Example 2: how to check django version
>>> import django
>>> django.VERSION
(2, 0, 0, 'final', 0)
$ django-admin.py version
>>> import django
>>> django.VERSION
(2, 0, 0, 'final', 0)