Browse Source

调整setting文件

yf_fyh 3 năm trước cách đây
mục cha
commit
3fd27e3ac1
1 tập tin đã thay đổi với 29 bổ sung30 xóa
  1. 29 30
      bigdataAPI/settings.py

+ 29 - 30
bigdataAPI/settings.py

@@ -23,7 +23,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
 SECRET_KEY = '$rs)*w)9gh)nkf1=@r$2xguf1b(qz8ba!%hm8lwt54ti3_da^b'
 
 # SECURITY WARNING: don't run with debug turned on in production!
-DEBUG = False
+DEBUG = True
 
 ALLOWED_HOSTS = ['*']
 
@@ -78,36 +78,35 @@ WSGI_APPLICATION = 'bigdataAPI.wsgi.application'
 # Database
 # https://docs.djangoproject.com/en/2.1/ref/settings/#databases
 
-if DEBUG:
-    USER_CONFIG = {
-        'mysql': {
-            'host': 'localhost',
-            'user': 'root',
-            'pwd': 'yfkj@6020',
-            'port': 3306
-        },
-        'mongodb': {
-            'host': 'localhost',
-            'user': 'root',
-            'pwd': 'yfkj@6020',
-            'port': 27017
-        }
-    }
-else:
-    USER_CONFIG = {
-        'mysql': {
-            'host': 'localhost',
-            'user': 'root',
-            'pwd': 'yfkj@6020',
-            'port': 61882
-        },
-        'mongodb': {
-            'host': 'localhost',
-            'user': 'root',
-            'pwd': 'yfkj@6020',
-            'port': 57017
-        }
+
+USER_CONFIG = {
+    'mysql': {
+        'host': 'localhost',
+        'user': 'root',
+        'pwd': 'yfkj@6020',
+        'port': 3306
+    },
+    'mongodb': {
+        'host': 'localhost',
+        'user': 'root',
+        'pwd': 'yfkj@6020',
+        'port': 27017
     }
+}
+# USER_CONFIG = {
+#     'mysql': {
+#         'host': 'localhost',
+#         'user': 'root',
+#         'pwd': 'yfkj@6020',
+#         'port': 61882
+#     },
+#     'mongodb': {
+#         'host': 'localhost',
+#         'user': 'root',
+#         'pwd': 'yfkj@6020',
+#         'port': 57017
+#     }
+# }
 
 
 DATABASES = {