This commit is contained in:
caoqianming 2024-06-05 14:13:51 +08:00
commit 59cf693115
2 changed files with 5 additions and 0 deletions

1
.gitignore vendored
View File

@ -15,6 +15,7 @@ celerybeat-schedule.bak
celerybeat-schedule.dat
celerybeat-schedule.dir
db.sqlite3
apps.zip
server/conf.py
server/conf.ini
server/conf*.json

View File

@ -1,5 +1,6 @@
# 基本配置
SECRET_KEY = 'xxxxxx'
BASE_PROJECT_CODE = 'xxxxxx' # 一旦配置不要轻易改变
BASE_URL = 'http://127.0.0.1:8000'
BASE_URL_IN = 'http://127.0.0.1:8000'
BASE_URL_OUT = 'http://127.0.0.1:8000'
@ -13,6 +14,9 @@ EMAIL_USE_TLS = True
# 数据库配置
CACHE_LOCATION = "redis://127.0.0.1:6379/2"
CELERY_BROKER_URL = "redis://127.0.0.1:6379/3"
CELERY_TASK_DEFAULT_QUEUE = BASE_PROJECT_CODE
DEBUG = True
DATABASES = {
'default': {