From 4d0331e105b0d482cc4485e73c1a3bca2c0542fc Mon Sep 17 00:00:00 2001 From: ibuler Date: Wed, 13 Jan 2016 15:51:29 +0800 Subject: [PATCH] Update connect.py --- connect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connect.py b/connect.py index b57075d7d..84a02048a 100755 --- a/connect.py +++ b/connect.py @@ -21,7 +21,7 @@ from io import open as copen import uuid os.environ['DJANGO_SETTINGS_MODULE'] = 'jumpserver.settings' -if django.get_version() != '1.6': +if not django.get_version().startswith('1.6'): setup = django.setup() from django.contrib.sessions.models import Session from jumpserver.api import ServerError, User, Asset, PermRole, AssetGroup, get_object, mkdir, get_asset_info