mirror of https://github.com/jumpserver/jumpserver
修改import 的序列
parent
f73ba9cc4a
commit
9609bad31c
|
@ -12,14 +12,15 @@ import signal
|
||||||
import textwrap
|
import textwrap
|
||||||
import django
|
import django
|
||||||
import getpass
|
import getpass
|
||||||
from django.core.exceptions import ObjectDoesNotExist
|
|
||||||
from Crypto.Cipher import AES
|
from Crypto.Cipher import AES
|
||||||
from binascii import b2a_hex, a2b_hex
|
from binascii import b2a_hex, a2b_hex
|
||||||
|
|
||||||
|
from django.core.exceptions import ObjectDoesNotExist
|
||||||
os.environ['DJANGO_SETTINGS_MODULE'] = 'jumpserver.settings'
|
os.environ['DJANGO_SETTINGS_MODULE'] = 'jumpserver.settings'
|
||||||
django.setup()
|
django.setup()
|
||||||
|
|
||||||
from juser.models import User
|
from juser.models import User
|
||||||
from jasset.models import Asset
|
from jasset.models import Asset
|
||||||
from jpermission.models import Permission
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import termios
|
import termios
|
||||||
|
|
Loading…
Reference in New Issue