Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 301 - 310 of 600 for Div (0.01 seconds)

  1. docs/en/docs/advanced/templates.md

    ## Install dependencies { #install-dependencies }
    
    Make sure you create a [virtual environment](../virtual-environments.md), activate it, and install `jinja2`:
    
    <div class="termy">
    
    ```console
    $ pip install jinja2
    
    ---> 100%
    ```
    
    </div>
    
    ## Using `Jinja2Templates` { #using-jinja2templates }
    
    * Import `Jinja2Templates`.
    * Create a `templates` object that you can reuse later.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 3.4K bytes
    - Click Count (0)
  2. docs/zh-hant/docs/tutorial/header-param-models.md

    FastAPI 會從請求的標頭為每個欄位擷取資料,並交給你已定義的 Pydantic 模型實例。
    
    ## 檢視文件 { #check-the-docs }
    
    你可以在 `/docs` 的文件介面看到所需的標頭:
    
    <div class="screenshot">
    <img src="/img/tutorial/header-param-models/image01.png">
    </div>
    
    ## 禁止額外標頭 { #forbid-extra-headers }
    
    在某些特殊情境(可能不常見)下,你可能想限制允許接收的標頭。
    
    你可以使用 Pydantic 的模型設定來 `forbid` 任何 `extra` 欄位:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 14 08:15:26 GMT 2026
    - 2.3K bytes
    - Click Count (0)
  3. docs/ko/docs/tutorial/cookie-param-models.md

    **FastAPI**는 요청에서 받은 **쿠키**에서 **각 필드**에 대한 데이터를 **추출**하고 정의한 Pydantic 모델을 줍니다.
    
    ## 문서 확인하기 { #check-the-docs }
    
    문서 UI `/docs`에서 정의한 쿠키를 볼 수 있습니다:
    
    <div class="screenshot">
    <img src="/img/tutorial/cookie-param-models/image01.png">
    </div>
    
    /// info | 정보
    
    명심하세요, 내부적으로 **브라우저는 쿠키를 특별한 방식으로 처리**하기 때문에 **자바스크립트**가 쉽게 쿠키를 건드릴 수 **없습니다**.
    
    `/docs`에서 **API 문서 UI**로 이동하면 *경로 처리*에 대한 쿠키의 **문서**를 볼 수 있습니다.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 14 08:57:01 GMT 2026
    - 3.6K bytes
    - Click Count (0)
  4. docs/zh/docs/tutorial/first-steps.md

    如果你已经拥有 **FastAPI Cloud** 账户(我们从候补名单邀请了你 😉),你可以用一条命令部署应用。
    
    部署前,先确保已登录:
    
    <div class="termy">
    
    ```console
    $ fastapi login
    
    You are logged in to FastAPI Cloud 🚀
    ```
    
    </div>
    
    然后部署你的应用:
    
    <div class="termy">
    
    ```console
    $ fastapi deploy
    
    Deploying to FastAPI Cloud...
    
    ✅ Deployment successful!
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 13.3K bytes
    - Click Count (0)
  5. docs/zh/docs/how-to/conditional-openapi.md

    然后在创建 `FastAPI` 应用时使用它。
    
    接着,你可以通过把环境变量 `OPENAPI_URL` 设为空字符串来禁用 OpenAPI(包括文档 UI),例如:
    
    <div class="termy">
    
    ```console
    $ OPENAPI_URL= uvicorn main:app
    
    <span style="color: green;">INFO</span>:     Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
    ```
    
    </div>
    
    然后如果你访问 `/openapi.json`、`/docs` 或 `/redoc`,就会得到一个 `404 Not Found` 错误,例如:
    
    ```JSON
    {
        "detail": "Not Found"
    }
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 2.2K bytes
    - Click Count (0)
  6. docs/zh-hant/docs/tutorial/cookie-param-models.md

    **FastAPI** 會從請求收到的 **Cookie** 中擷取 **每個欄位** 的資料,並交給你定義的 Pydantic 模型。
    
    ## 查看文件 { #check-the-docs }
    
    你可以在 `/docs` 的文件介面中看到已定義的 Cookie:
    
    <div class="screenshot">
    <img src="/img/tutorial/cookie-param-models/image01.png">
    </div>
    
    /// info
    
    請注意,由於**瀏覽器會以特殊且在背景進行的方式處理 Cookie**,因此**不會**輕易允許 **JavaScript** 存取它們。
    
    當你前往位於 `/docs` 的 **API 文件介面**時,可以看到路徑操作的 Cookie 說明。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 14 08:15:26 GMT 2026
    - 2.9K bytes
    - Click Count (0)
  7. docs/zh/docs/advanced/json-base64-bytes.md

    {* ../../docs_src/json_base64_bytes/tutorial001_py310.py ln[1:9,29:35] hl[9] *}
    
    查看 `/docs` 时,你会看到字段 `data` 期望接收 base64 编码的字节:
    
    <div class="screenshot">
    <img src="/img/tutorial/json-base64-bytes/image01.png">
    </div>
    
    你可以发送如下请求:
    
    ```json
    {
        "description": "Some data",
        "data": "aGVsbG8="
    }
    ```
    
    /// tip | 提示
    
    `aGVsbG8=` 是 `hello` 的 base64 编码。
    
    ///
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:29:48 GMT 2026
    - 2.4K bytes
    - Click Count (0)
  8. docs/en/docs/fastapi-cli.md

    When you install FastAPI (e.g. with `pip install "fastapi[standard]"`), it comes with a command line program you can run in the terminal.
    
    To run your FastAPI app for development, you can use the `fastapi dev` command:
    
    <div class="termy">
    
    ```console
    $ <font color="#4E9A06">fastapi</font> dev
    
      <span style="background-color:#009485"><font color="#D3D7CF"> FastAPI </font></span>  Starting development server 🚀
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Mar 07 09:29:03 GMT 2026
    - 5.8K bytes
    - Click Count (0)
  9. docs/zh-hant/docs/advanced/sub-applications.md

    ### 檢查自動 API 文件 { #check-the-automatic-api-docs }
    
    現在,執行 `fastapi` 指令:
    
    <div class="termy">
    
    ```console
    $ fastapi dev
    
    <span style="color: green;">INFO</span>:     Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
    ```
    
    </div>
    
    然後開啟位於 [http://127.0.0.1:8000/docs](http://127.0.0.1:8000/docs) 的文件。
    
    你會看到主應用的自動 API 文件,只包含它自己的*路徑操作*:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 2.8K bytes
    - Click Count (0)
  10. docs/ja/docs/fastapi-cli.md

    FastAPI をインストールすると(例: `pip install "fastapi[standard]"`)、ターミナルで実行できるコマンドラインプログラムが付属します。
    
    開発用に FastAPI アプリを起動するには、`fastapi dev` コマンドを使用できます:
    
    <div class="termy">
    
    ```console
    $ <font color="#4E9A06">fastapi</font> dev
    
      <span style="background-color:#009485"><font color="#D3D7CF"> FastAPI </font></span>  Starting development server 🚀
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 6.6K bytes
    - Click Count (0)
Back to Top