1. 同步setting
This commit is contained in:
彭森 2024-06-28 14:30:15 +08:00
parent 79337a9346
commit 22e4302b6f
1 changed files with 21 additions and 9 deletions

View File

@ -22,12 +22,12 @@ INSTALLED_APPS = [
"django.contrib.staticfiles", "django.contrib.staticfiles",
'rest_framework', 'rest_framework',
"common", "common",
"excel_parser",
"application.accounts", "application.accounts",
'application.org_mgnt',
'application.pjt_mgnt',
# 'application.pjt_mgnt', 'application.pjt_mgnt',
'application.hrm_mgnt', 'application.hrm_mgnt',
'application.org_mgnt',
'application.fac_mgnt', 'application.fac_mgnt',
'application.rsc_mgnt', 'application.rsc_mgnt',
'application.mkt_mgnt', 'application.mkt_mgnt',
@ -103,10 +103,22 @@ DATABASES = {
# 'default': { # 'default': {
# 'ENGINE': 'django.db.backends.mysql', # 'ENGINE': 'django.db.backends.mysql',
# 'NAME': 'xh_digital_manage', # 数据库名 # 'NAME': 'xh_digital_manage', # 数据库名
# 'USER': 'root', # 用户名 # 'USER': 'ps', # 用户名
# 'PASSWORD': '123456', # 密码 # 'PASSWORD': 'ps240523..', # 密码
# 'HOST': 'localhost', # 地址 # 'HOST': 'bj-cdb-7qxczedm.sql.tencentcdb.com', # 地址
# 'PORT': '3306', # 端口号 # 'PORT': '59450', # 端口号
# 'OPTIONS': {
# # 这里可以添加一些额外的选项,比如连接超时时间
# 'connect_timeout': 20,
# },
# },
# 'default': {
# 'ENGINE': 'django.db.backends.mysql',
# 'NAME': 'xh_digital_manage', # 数据库名
# 'USER': 'office', # 用户名
# 'PASSWORD': 'office240603..', # 密码
# 'HOST': 'bj-cdb-7qxczedm.sql.tencentcdb.com', # 地址
# 'PORT': '59450', # 端口号
# 'OPTIONS': { # 'OPTIONS': {
# # 这里可以添加一些额外的选项,比如连接超时时间 # # 这里可以添加一些额外的选项,比如连接超时时间
# 'connect_timeout': 20, # 'connect_timeout': 20,
@ -115,8 +127,8 @@ DATABASES = {
'default': { 'default': {
'ENGINE': 'django.db.backends.mysql', 'ENGINE': 'django.db.backends.mysql',
'NAME': 'xh_digital_manage', # 数据库名 'NAME': 'xh_digital_manage', # 数据库名
'USER': 'ps', # 用户名 'USER': 'temp', # 用户名
'PASSWORD': 'ps240523..', # 密码 'PASSWORD': 'temp240618', # 密码
'HOST': 'bj-cdb-7qxczedm.sql.tencentcdb.com', # 地址 'HOST': 'bj-cdb-7qxczedm.sql.tencentcdb.com', # 地址
'PORT': '59450', # 端口号 'PORT': '59450', # 端口号
'OPTIONS': { 'OPTIONS': {