From 22e4302b6f7793f7e411b81530a6004bcfbc4e60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E6=A3=AE?= Date: Fri, 28 Jun 2024 14:30:15 +0800 Subject: [PATCH] =?UTF-8?q?commit=201.=20=E5=90=8C=E6=AD=A5setting?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- XH_Digital_Management/settings.py | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/XH_Digital_Management/settings.py b/XH_Digital_Management/settings.py index a95042c..0394c26 100644 --- a/XH_Digital_Management/settings.py +++ b/XH_Digital_Management/settings.py @@ -22,12 +22,12 @@ INSTALLED_APPS = [ "django.contrib.staticfiles", 'rest_framework', "common", + "excel_parser", "application.accounts", - 'application.org_mgnt', - 'application.pjt_mgnt', - # 'application.pjt_mgnt', + 'application.pjt_mgnt', 'application.hrm_mgnt', + 'application.org_mgnt', 'application.fac_mgnt', 'application.rsc_mgnt', 'application.mkt_mgnt', @@ -103,10 +103,22 @@ DATABASES = { # 'default': { # 'ENGINE': 'django.db.backends.mysql', # 'NAME': 'xh_digital_manage', # 数据库名 - # 'USER': 'root', # 用户名 - # 'PASSWORD': '123456', # 密码 - # 'HOST': 'localhost', # 地址 - # 'PORT': '3306', # 端口号 + # 'USER': 'ps', # 用户名 + # 'PASSWORD': 'ps240523..', # 密码 + # 'HOST': 'bj-cdb-7qxczedm.sql.tencentcdb.com', # 地址 + # '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': { # # 这里可以添加一些额外的选项,比如连接超时时间 # 'connect_timeout': 20, @@ -115,8 +127,8 @@ DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'xh_digital_manage', # 数据库名 - 'USER': 'ps', # 用户名 - 'PASSWORD': 'ps240523..', # 密码 + 'USER': 'temp', # 用户名 + 'PASSWORD': 'temp240618', # 密码 'HOST': 'bj-cdb-7qxczedm.sql.tencentcdb.com', # 地址 'PORT': '59450', # 端口号 'OPTIONS': {