shishi6shu/backend
2024-08-23 11:01:27 +00:00
..
__pycache__ first commit 2024-08-23 11:01:27 +00:00
database first commit 2024-08-23 11:01:27 +00:00
models first commit 2024-08-23 11:01:27 +00:00
routers first commit 2024-08-23 11:01:27 +00:00
schemas first commit 2024-08-23 11:01:27 +00:00
__init__.py first commit 2024-08-23 11:01:27 +00:00
1.py first commit 2024-08-23 11:01:27 +00:00
2.py first commit 2024-08-23 11:01:27 +00:00
main.py first commit 2024-08-23 11:01:27 +00:00
README.md first commit 2024-08-23 11:01:27 +00:00
requirements.txt first commit 2024-08-23 11:01:27 +00:00
vue3README.md first commit 2024-08-23 11:01:27 +00:00

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

删除所有表

Base.metadata.drop_all(bind=engine)

print("数据库表已重置")