Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 389 for Tip (0.12 sec)

  1. docs/en/docs/how-to/sql-databases-peewee.md

    ```Python hl_lines="24"
    {!../../../docs_src/sql_databases_peewee/sql_app/database.py!}
    ```
    
    !!! tip
        Make sure you overwrite `db._state` *after* creating `db`.
    
    !!! tip
        You would do the same for any other Peewee database, including `PostgresqlDatabase`, `MySQLDatabase`, etc.
    
    ## Create the database models
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Jan 16 13:23:25 GMT 2024
    - 23.6K bytes
    - Viewed (1)
  2. docs/zh/docs/tutorial/testing.md

    {!../../../docs_src/app_testing/tutorial001.py!}
    ```
    
    !!! tip "提示"
        注意测试函数是普通的 `def`,不是 `async def`。
    
        还有client的调用也是普通的调用,不是用 `await`。
    
        这让你可以直接使用 `pytest` 而不会遇到麻烦。
    
    !!! note "技术细节"
        你也可以用 `from starlette.testclient import TestClient`。
    
        **FastAPI** 提供了和 `starlette.testclient` 一样的 `fastapi.testclient`,只是为了方便开发者。但它直接来自Starlette。
    
    !!! tip "提示"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 6K bytes
    - Viewed (0)
  3. docs/de/docs/tutorial/testing.md

        ```
    
    === "Python 3.10+ nicht annotiert"
    
        !!! tip "Tipp"
            Bevorzugen Sie die `Annotated`-Version, falls möglich.
    
        ```Python
        {!> ../../../docs_src/app_testing/app_b_py310/main.py!}
        ```
    
    === "Python 3.8+ nicht annotiert"
    
        !!! tip "Tipp"
            Bevorzugen Sie die `Annotated`-Version, falls möglich.
    
        ```Python
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:20:01 GMT 2024
    - 7K bytes
    - Viewed (0)
  4. docs/en/docs/advanced/websockets.md

        ```
    
    === "Python 3.10+ non-Annotated"
    
        !!! tip
            Prefer to use the `Annotated` version if possible.
    
        ```Python hl_lines="66-67  79"
        {!> ../../../docs_src/websockets/tutorial002_py310.py!}
        ```
    
    === "Python 3.8+ non-Annotated"
    
        !!! tip
            Prefer to use the `Annotated` version if possible.
    
        ```Python hl_lines="68-69  81"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  5. docs/zh/docs/advanced/websockets.md

        {!> ../../../docs_src/websockets/tutorial002_an.py!}
        ```
    
    === "Python 3.10+ 非带注解版本"
    
        !!! tip
            如果可能,请尽量使用 `Annotated` 版本。
    
        ```Python hl_lines="66-67  79"
        {!> ../../../docs_src/websockets/tutorial002_py310.py!}
        ```
    
    === "Python 3.8+ 非带注解版本"
    
        !!! tip
            如果可能,请尽量使用 `Annotated` 版本。
    
        ```Python hl_lines="68-69  81"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 6K bytes
    - Viewed (0)
  6. docs/de/docs/tutorial/bigger-applications.md

        ```
    
    === "Python 3.8+ nicht annotiert"
    
        !!! tip "Tipp"
            Bevorzugen Sie die `Annotated`-Version, falls möglich.
    
        ```Python hl_lines="1  4-6" title="app/dependencies.py"
        {!> ../../../docs_src/bigger_applications/app/dependencies.py!}
        ```
    
    !!! tip "Tipp"
        Um dieses Beispiel zu vereinfachen, verwenden wir einen erfundenen Header.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:27:59 GMT 2024
    - 21.1K bytes
    - Viewed (0)
  7. docs/ru/docs/deployment/versions.md

    !!! tip "Подсказка"
        "ПАТЧ" - это последнее число. Например, в `0.2.3`, ПАТЧ-версия - это `3`.
    
    Итак, вы можете закрепить версию следующим образом:
    
    ```txt
    fastapi>=0.45.0,<0.46.0
    ```
    
    Обратно несовместимые изменения и новые функции добавляются в "МИНОРНЫЕ" версии.
    
    !!! tip "Подсказка"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  8. docs/ru/docs/tutorial/security/first-steps.md

        {!> ../../../docs_src/security/tutorial001_an.py!}
        ```
    
    === "Python 3.8+ без Annotated"
    
        !!! tip "Подсказка"
            Предпочтительнее использовать версию с аннотацией, если это возможно.
    
        ```Python hl_lines="6"
        {!> ../../../docs_src/security/tutorial001.py!}
        ```
    
    !!! tip "Подсказка"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  9. docs/ru/docs/tutorial/schema-extra-example.md

        ```
    
    === "Python 3.10+ non-Annotated"
    
        !!! tip Заметка
            Рекомендуется использовать версию с `Annotated`, если это возможно.
    
        ```Python hl_lines="18-23"
        {!> ../../../docs_src/schema_extra_example/tutorial003_py310.py!}
        ```
    
    === "Python 3.8+ non-Annotated"
    
        !!! tip Заметка
            Рекомендуется использовать версию с `Annotated`, если это возможно.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  10. docs/de/docs/tutorial/extra-data-types.md

        ```
    
    === "Python 3.10+ nicht annotiert"
    
        !!! tip
            Bevorzugen Sie die `Annotated`-Version, falls möglich.
    
        ```Python hl_lines="1  2  11-15"
        {!> ../../../docs_src/extra_data_types/tutorial001_py310.py!}
        ```
    
    === "Python 3.8+ nicht annotiert"
    
        !!! tip
            Bevorzugen Sie die `Annotated`-Version, falls möglich.
    
        ```Python hl_lines="1  2  12-16"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 18:08:55 GMT 2024
    - 4.4K bytes
    - Viewed (0)
Back to top