def get_django_registration_version():
 try:
  from registration.backends import get_backend
  version = 'new'
 except ImportError:
  version = 'old'
 try:
  import registration
 except ImportError as e:
  version = None
 return version

def get_django_registration_version ( ) : try : from registration . backends import get_backend version = 'new' except ImportError : version = 'old' try : import registration except ImportError as e : version = None return version
returns new .