mirror of https://github.com/jumpserver/jumpserver
				
				
				
			修改bug
							parent
							
								
									803dc9c576
								
							
						
					
					
						commit
						e66b1b4192
					
				| 
						 | 
					@ -15,7 +15,7 @@ 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
 | 
				
			||||||
 | 
					
 | 
				
			||||||
os.environ['DJANGO_SETTINGS_MODULE'] = 'AutoSa.settings'
 | 
					os.environ['DJANGO_SETTINGS_MODULE'] = 'jumpserver.settings'
 | 
				
			||||||
django.setup()
 | 
					django.setup()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
from juser.models import User, Group
 | 
					from juser.models import User, Group
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -15,7 +15,7 @@ import ConfigParser
 | 
				
			||||||
config = ConfigParser.ConfigParser()
 | 
					config = ConfigParser.ConfigParser()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
 | 
					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_HOST = config.get('db', 'host')
 | 
				
			||||||
DB_PORT = config.getint('db', 'port')
 | 
					DB_PORT = config.getint('db', 'port')
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue