text: from distutils.version import LooseVersion
  import django
  
  
  DJANGO_VERSION = django.get_version()
  
  # These means "less than or equal to DJANGO_FOO_BAR"
  DJANGO_1_8 = LooseVersion(DJANGO_VERSION) < LooseVersion('1.9')
  DJANGO_1_9 = LooseVersion(DJANGO_VERSION) < LooseVersion('1.10')
  DJANGO_1_10 = LooseVersion(DJANGO_VERSION) < LooseVersion('1.11')
  DJANGO_1_11 = LooseVersion(DJANGO_VERSION) < LooseVersion('2.0')
  