|
|
@@ -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 = True
|
|
|
+DEBUG = False
|
|
|
|
|
|
ALLOWED_HOSTS = ['*']
|
|
|
|
|
|
@@ -79,34 +79,34 @@ WSGI_APPLICATION = 'bigdataAPI.wsgi.application'
|
|
|
# https://docs.djangoproject.com/en/2.1/ref/settings/#databases
|
|
|
|
|
|
|
|
|
-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
|
|
|
+# 'port': 3306
|
|
|
# },
|
|
|
# 'mongodb': {
|
|
|
# 'host': 'localhost',
|
|
|
# 'user': 'root',
|
|
|
# 'pwd': 'yfkj@6020',
|
|
|
-# 'port': 57017
|
|
|
+# '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 = {
|
|
|
@@ -116,7 +116,7 @@ DATABASES = {
|
|
|
'USER': 'api',
|
|
|
'PASSWORD': 'yfkj@6020',
|
|
|
'HOST': '127.0.0.1',
|
|
|
- 'PORT': 3306,
|
|
|
+ 'PORT': 61882,
|
|
|
'OPTIONS': {'charset': 'utf8mb4'}
|
|
|
}
|
|
|
}
|