shishi6shu/backend/README.md
2024-08-23 11:01:27 +00:00

508 B
Executable File

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("数据库表已重置")