pip check django version code example
Example 1: how to check if django is installed( in python shell)
import django
django.VERSION
Example 2: how to check django version
>>> import django
>>> django.VERSION
(2, 0, 0, 'final', 0)
import django
django.VERSION
>>> import django
>>> django.VERSION
(2, 0, 0, 'final', 0)