import django
from distutils.version import StrictVersion


__version__ = '1.2.1'


dj_version = django.get_version()


if StrictVersion(dj_version) < StrictVersion('1.7'):
    from rolepermissions.loader import load_roles_and_permissions
    load_roles_and_permissions()
else:
    default_app_config = 'rolepermissions.apps.RolePermissions'
