mirror of
https://github.com/fastapi-practices/fastapi-best-architecture.git
synced 2026-09-21 21:15:13 +00:00
25 lines
507 B
Python
25 lines
507 B
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
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'
|