django version check

import django

print(django.get_version())

The code here first imports the Django module. Then, it uses the get_version() function to retrieve the current version of Django and prints it out.