diff --git a/connect.py b/connect.py index ec26ad091..72e4c03a5 100755 --- a/connect.py +++ b/connect.py @@ -15,7 +15,7 @@ from django.core.exceptions import ObjectDoesNotExist from Crypto.Cipher import AES from binascii import b2a_hex, a2b_hex -os.environ['DJANGO_SETTINGS_MODULE'] = 'AutoSa.settings' +os.environ['DJANGO_SETTINGS_MODULE'] = 'jumpserver.settings' django.setup() from juser.models import User, Group diff --git a/jumpserver.conf b/jump.conf similarity index 100% rename from jumpserver.conf rename to jump.conf diff --git a/jumpserver/settings.py b/jumpserver/settings.py index dd605974c..9a1e03248 100644 --- a/jumpserver/settings.py +++ b/jumpserver/settings.py @@ -15,7 +15,7 @@ import ConfigParser config = ConfigParser.ConfigParser() BASE_DIR = os.path.dirname(os.path.dirname(__file__)) -config.read(os.path.join(BASE_DIR, 'jumpserver.conf')) +config.read(os.path.join(BASE_DIR, 'jump.conf')) DB_HOST = config.get('db', 'host') DB_PORT = config.getint('db', 'port')