.. | ||
__pycache__ | ||
database | ||
models | ||
routers | ||
schemas | ||
__init__.py | ||
1.py | ||
2.py | ||
main.py | ||
README.md | ||
requirements.txt | ||
vue3README.md |
uvicorn backend.main:app --reload
import configparser uvicorn main:app --reload
创建ConfigParser对象
config = configparser.ConfigParser()
读取配置文件
config.read('app.conf')
获取配置项
value = config['SectionName']['KeyName'] VUE3 npm install socket.io-client
#数据库迁移 alembic init alembic alembic revision autogenrate -m "Add is_superuser column to admin table2" alembic upgrade head