Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 331 - 340 of 561 for tip (0.01 seconds)

  1. docs/ja/docs/environment-variables.md

    # 環境変数
    
    /// tip
    
    もし、「環境変数」とは何か、それをどう使うかを既に知っている場合は、このセクションをスキップして構いません。
    
    ///
    
    環境変数(**env var**とも呼ばれる)はPythonコードの**外側**、つまり**OS**に存在する変数で、Pythonから読み取ることができます。(他のプログラムでも同様に読み取れます。)
    
    環境変数は、アプリケーションの**設定**の管理や、Pythonの**インストール**などに役立ちます。
    
    ## 環境変数の作成と使用
    
    環境変数は**シェル(ターミナル)**内で**作成**して使用でき、それらにPythonは不要です。
    
    //// tab | Linux, macOS, Windows Bash
    
    <div class="termy">
    
    ```console
    // You could create an env var MY_NAME with
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Jan 27 15:39:04 GMT 2025
    - 9.4K bytes
    - Click Count (0)
  2. docs/ja/docs/tutorial/path-params.md

    /// info | 情報
    
    <a href="https://docs.python.org/3/library/enum.html" class="external-link" target="_blank">Enumerations (もしくは、enums)はPython 3.4以降で利用できます</a>。
    
    ///
    
    /// tip | 豆知識
    
    "AlexNet"、"ResNet"そして"LeNet"は機械学習<abbr title="Technically, Deep Learning model architectures">モデル</abbr>の名前です。
    
    ///
    
    ### *パスパラメータ*の宣言
    
    次に、作成したenumクラスである`ModelName`を使用した型アノテーションをもつ*パスパラメータ*を作成します:
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 18 02:25:44 GMT 2024
    - 10.4K bytes
    - Click Count (0)
  3. docs/ru/docs/advanced/generate-clients.md

    Больше генераторов SDK можно найти на <a href="https://openapi.tools/#sdk" class="external-link" target="_blank">OpenAPI.Tools</a>.
    
    /// tip | Совет
    
    FastAPI автоматически генерирует спецификации **OpenAPI 3.1**, поэтому любой используемый инструмент должен поддерживать эту версию.
    
    ///
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 15.9K bytes
    - Click Count (0)
  4. docs/en/docs/tutorial/dependencies/index.md

    You **don't call it** directly (don't add the parenthesis at the end), you just pass it as a parameter to `Depends()`.
    
    And that function takes parameters in the same way that *path operation functions* do.
    
    /// tip
    
    You'll see what other "things", apart from functions, can be used as dependencies in the next chapter.
    
    ///
    
    Whenever a new request arrives, **FastAPI** will take care of:
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sun Aug 31 09:15:41 GMT 2025
    - 9.6K bytes
    - Click Count (0)
  5. docs/en/docs/tutorial/schema-extra-example.md

    You can set `"json_schema_extra"` with a `dict` containing any additional data you would like to show up in the generated JSON Schema, including `examples`.
    
    /// tip
    
    You could use the same technique to extend the JSON Schema and add your own custom extra info.
    
    For example you could use it to add metadata for a frontend user interface, etc.
    
    ///
    
    /// info
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 20 15:55:38 GMT 2025
    - 8.9K bytes
    - Click Count (0)
  6. docs/es/docs/tutorial/cookie-param-models.md

    /// note | Nota
    
    Esto es compatible desde la versión `0.115.0` de FastAPI. 🤓
    
    ///
    
    /// tip | Consejo
    
    Esta misma técnica se aplica a `Query`, `Cookie`, y `Header`. 😎
    
    ///
    
    ## Cookies con un Modelo de Pydantic { #cookies-with-a-pydantic-model }
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Dec 16 16:33:45 GMT 2025
    - 3.3K bytes
    - Click Count (0)
  7. docs/zh/docs/advanced/templates.md

    {* ../../docs_src/templates/tutorial001.py hl[4,11,15:16] *}
    
    /// note | 笔记
    
    在FastAPI 0.108.0,Starlette 0.29.0之前,`name`是第一个参数。
    并且,在此之前,`request`对象是作为context的一部分以键值对的形式传递的。
    
    ///
    
    /// tip | 提示
    
    通过声明 `response_class=HTMLResponse`,API 文档就能识别响应的对象是 HTML。
    
    ///
    
    /// note | 技术细节
    
    您还可以使用 `from starlette.templating import Jinja2Templates`。
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Oct 11 17:48:49 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  8. docs/zh/docs/deployment/concepts.md

    当然,也有一些情况,多次运行前面的步骤也没有问题,这样的话就好办多了。
    
    /// tip
    
    另外,请记住,根据您的设置,在某些情况下,您在开始应用程序之前**可能甚至不需要任何先前的步骤**。
    
     在这种情况下,您就不必担心这些。 🤷
    
    ///
    
    ### 前面步骤策略的示例
    
    这将在**很大程度上取决于您部署系统的方式**,并且可能与您启动程序、处理重启等的方式有关。
    
    以下是一些可能的想法:
    
    * Kubernetes 中的“Init Container”在应用程序容器之前运行
    * 一个 bash 脚本,运行前面的步骤,然后启动您的应用程序
         * 您仍然需要一种方法来启动/重新启动 bash 脚本、检测错误等。
    
    /// tip
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sun May 11 13:37:26 GMT 2025
    - 16.2K bytes
    - Click Count (0)
  9. docs/es/docs/tutorial/request-forms.md

    /// info | Información
    
    `Form` es una clase que hereda directamente de `Body`.
    
    ///
    
    /// tip | Consejo
    
    Para declarar bodies de formularios, necesitas usar `Form` explícitamente, porque sin él, los parámetros se interpretarían como parámetros de query o como parámetros de body (JSON).
    
    ///
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Dec 16 16:33:45 GMT 2025
    - 3.1K bytes
    - Click Count (0)
  10. docs/en/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

    These dependencies will be executed/solved the same way as normal dependencies. But their value (if they return any) won't be passed to your *path operation function*.
    
    /// tip
    
    Some editors check for unused function parameters, and show them as errors.
    
    Using these `dependencies` in the *path operation decorator* you can make sure they are executed while avoiding editor/tooling errors.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sun Aug 31 09:15:41 GMT 2025
    - 2.9K bytes
    - Click Count (0)
Back to Top