FastAPI 依赖库同步升级,官方升级版本文档:https://fastapi.tiangolo.com/release-notes/,本次主要升级内容:https://fastapi.tiangolo.com/how-to/separate-openapi-schemas/
This commit is contained in:
parent
95a6ee9fc9
commit
61e9a336d3
@ -11,7 +11,7 @@ from fastapi.security import OAuth2PasswordBearer
|
||||
"""
|
||||
系统版本
|
||||
"""
|
||||
VERSION = "3.0.1"
|
||||
VERSION = "3.0.2"
|
||||
|
||||
"""安全警告: 不要在生产中打开调试运行!"""
|
||||
DEBUG = False
|
||||
|
@ -113,6 +113,8 @@ def init_app(path: str):
|
||||
"""
|
||||
自动创建初始化 APP 结构
|
||||
|
||||
命令例子:python main.py init-app vadmin/test
|
||||
|
||||
:params path: app 路径,根目录为apps,填写apps后面路径即可,例子:vadmin/auth
|
||||
"""
|
||||
print(f"开始创建并初始化 {path} APP")
|
||||
|
Binary file not shown.
@ -93,8 +93,3 @@ class CreateApp:
|
||||
template.close()
|
||||
return content
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
app = CreateApp("test/vv")
|
||||
app.run()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user