To check for the version of Django installed on your system, you can open the command prompt and enter the following command :
python -m django –version
You can also try to import Django and use the get_version()
method as follows :
import django
print(django.get_version())