From 9609bad31c006bfea9885e9f67f26499d7a50e9b Mon Sep 17 00:00:00 2001 From: ibuler Date: Fri, 26 Dec 2014 21:55:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9import=20=E7=9A=84=E5=BA=8F?= =?UTF-8?q?=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- connect.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/connect.py b/connect.py index 5e39dcb40..435adf258 100755 --- a/connect.py +++ b/connect.py @@ -12,14 +12,15 @@ import signal import textwrap import django import getpass -from django.core.exceptions import ObjectDoesNotExist from Crypto.Cipher import AES from binascii import b2a_hex, a2b_hex + +from django.core.exceptions import ObjectDoesNotExist os.environ['DJANGO_SETTINGS_MODULE'] = 'jumpserver.settings' django.setup() + from juser.models import User from jasset.models import Asset -from jpermission.models import Permission try: import termios