mirror of
https://github.com/fastapi-practices/fastapi_best_architecture.git
synced 2026-03-13 09:31:31 +08:00
* Update the ruff rules and format the code * Update the per-file-ignores * Update the ci * Update rules * Fix codes * Fix pagination * Update rules
23 lines
460 B
Python
23 lines
460 B
Python
from pathlib import Path
|
|
|
|
# 项目根目录
|
|
BASE_PATH = Path(__file__).resolve().parent.parent
|
|
|
|
# alembic 迁移文件存放路径
|
|
ALEMBIC_VERSION_DIR = BASE_PATH / 'alembic' / 'versions'
|
|
|
|
# 日志文件路径
|
|
LOG_DIR = BASE_PATH / 'log'
|
|
|
|
# 静态资源目录
|
|
STATIC_DIR = BASE_PATH / 'static'
|
|
|
|
# 上传文件目录
|
|
UPLOAD_DIR = STATIC_DIR / 'upload'
|
|
|
|
# 插件目录
|
|
PLUGIN_DIR = BASE_PATH / 'plugin'
|
|
|
|
# 国际化文件目录
|
|
LOCALE_DIR = BASE_PATH / 'locale'
|