feat: base 更新readme

This commit is contained in:
caoqianming 2026-01-14 13:39:19 +08:00
parent f164168fac
commit f9a9774af7
5 changed files with 17 additions and 20 deletions

View File

@ -1,12 +0,0 @@
SECRET_KEY = 'xx'
DEBUG = False
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'xx',
'USER': 'postgres',
'PASSWORD': 'xx',
'HOST': 'xx',
'PORT': '5432',
}
}

BIN
db.json Normal file

Binary file not shown.

View File

@ -1,9 +1,17 @@
## 如何运行 ## 如何运行
将 server 下的 conf_e.json 以及 conf_e.py重名名为 conf.json 和 conf.py。 将 server 下的 conf_e.json 以及 conf_e.py移动到config文件夹下并重命名为 conf.json 和 conf.py。
根据自己的情况修改参数 根据自己的情况修改参数
进入虚拟环境后运行 python manage.py migrate
导入初始数据 python manage.py loaddata db.json
默认管理员账户密码为admin xtadmin123!
在项目目录下执行 python manage.py runserver 即可 在项目目录下执行 python manage.py runserver 即可
运行后在 localhost:8000/api/swagger/下查看 api 文档 运行后在 localhost:8000/api/swagger/下查看 api 文档

View File

@ -3,7 +3,8 @@
"base_name": "xx平台", "base_name": "xx平台",
"base_logo": "/media/default/logo.png", "base_logo": "/media/default/logo.png",
"base_name_short": "xx", "base_name_short": "xx",
"base_logo_side": "" "base_logo_side": "",
"base_menucate": "dynamic"
}, },
"apk": { "apk": {
"apk_version": "1.0", "apk_version": "1.0",

View File

@ -14,7 +14,12 @@ EMAIL_USE_TLS = True
# 数据库配置 # 数据库配置
CACHE_LOCATION = "redis://127.0.0.1:6379/2" CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.redis.RedisCache',
'LOCATION': 'redis://127.0.0.1:6379/2', # Redis URL
}
}
CELERY_BROKER_URL = "redis://127.0.0.1:6379/3" CELERY_BROKER_URL = "redis://127.0.0.1:6379/3"
CELERY_TASK_DEFAULT_QUEUE = BASE_PROJECT_CODE CELERY_TASK_DEFAULT_QUEUE = BASE_PROJECT_CODE
DEBUG = True DEBUG = True
@ -32,11 +37,6 @@ DATABASES = {
# 雪花ID # 雪花ID
SNOW_DATACENTER_ID = 1 SNOW_DATACENTER_ID = 1
# 百度语音
BD_SP_ID = 'xx'
BD_SP_KEY = 'xx'
BD_SP_SECRET = 'xx'
# 运维相关 # 运维相关
SD_PWD = 'xx' SD_PWD = 'xx'
BACKUP_PATH = '/home/xx/xx/xx' BACKUP_PATH = '/home/xx/xx/xx'