コンテンツにスキップ
per page, with , order by , clip by
Results of 1 - 2 of about 2 for ChimichangApp (0.001 sec.)
Settings and Environment Variables 9357
Settings and Environment Variables Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . In many cases your application could need some external settings or configuratio ... variables, for example you could set an ADMIN_EMAIL and APP_NAME with: $ ADMIN_EMAIL = "deadpool@example.com" APP_NAME = "ChimichangApp" fastapi run main.py <span style="color: green;">INFO</span>: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to qu ... m all before the command. And then the admin_email setting would be set to "deadpool@example.com" . The app_name would be "ChimichangApp" . And the items_per_user would keep its default value of 50 . Settings in another module You could put those settings in ... ip install python-dotenv . The .env file You could have a .env file with: ADMIN_EMAIL = "deadpool@example.com" APP_NAME = "ChimichangApp" Read settings from .env And then update your config.py with: Pydantic v2 Pydantic v1 Python 3.8+ from pydantic_settings i ...
https://man.mtool.work/fastapi/0.115/advanced/settings/
メタデータとドキュメントのURL 9357
メタデータとドキュメントのURL FastAPI アプリケーションのいくつかのメタデータの設定をカスタマイズできます。 タイトル、説明文、バージョン 以下を設定できます: タイトル : OpenAPIおよび自動APIドキュメントUIでAPIのタイトル/名前として使用される。 ... するには、パラメータ title 、 description 、 version を使用します: Python 3.8+ from fastapi import FastAPI description = """ ChimichangApp API helps you do awesome stuff. ? ## Items You can **read items**. ## Users You will be able to: * **Create users** (_not ... implemented_). * **Read users** (_not implemented_). """ app = FastAPI ( title = "ChimichangApp" , description = description , summary = "Deadpool's favorite app. Nuff said." , version = "0.0.1" , terms_of_service = "h ...
https://man.mtool.work/fastapi/0.115/tutorial/metadata/
PREV 1 NEXT