林轩 6 місяців тому
батько
коміт
0e5eda3e9c
2 змінених файлів з 11 додано та 11 видалено
  1. 4 4
      bigdataAPI/settings.py
  2. 7 7
      formal.json

+ 4 - 4
bigdataAPI/settings.py

@@ -26,10 +26,10 @@ SECRET_KEY = '$rs)*w)9gh)nkf1=@r$2xguf1b(qz8ba!%hm8lwt54ti3_da^b'
 # SECURITY WARNING: don't run with debug turned on in production!
 DEBUG = True
 
-if DEBUG:
-    config_path = os.path.join(BASE_DIR,"test.json")
-else:
-    config_path = os.path.join(BASE_DIR,"formal.json")
+# if DEBUG:
+#     config_path = os.path.join(BASE_DIR,"test.json")
+# else:
+config_path = os.path.join(BASE_DIR,"formal.json")
 with open(config_path,"r") as f:
     config_data = f.read()
 CONFIG = json.loads(config_data)

+ 7 - 7
formal.json

@@ -1,24 +1,24 @@
 {
 	"mysql": {
 		"host": "localhost",
-		"port": 61882,
-		"user": "api",
-		"pwd": "yfkj@6020"
+		"port": 3306,
+		"user": "root",
+		"pwd": "Yfkj#123456"
 	},
 	"redis": {
 		"host": "localhost",
-		"port": "61881",
-		"password": "yf6021",
+		"port": "6379",
+		"password": "yfkj1234",
         "url": "redis://:yf6021@127.0.0.1:61881/12"
 	},
 	"bigdatamysql": {
-		"host": "localhost",
+		"host": "8.136.98.49",
 		"port": 61882,
 		"user": "root",
 		"pwd": "yfkj@6020"
 	},
 	"bigdatamongo": {
-		"host": "localhost",
+		"host": "8.136.98.49",
 		"port": 57017,
 		"user": "root",
 		"pwd": "yfkj@6020"