Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for app03_an_py39 (0.12 sec)

  1. docs/ru/docs/advanced/settings.md

    {* ../../docs_src/settings/app02_an_py39/config.py hl[10] *}
    
    Обратите внимание, что теперь мы не создаем экземпляр по умолчанию `settings = Settings()`.
    
    ### Основной файл приложения { #the-main-app-file }
    
    Теперь мы создаем зависимость, которая возвращает новый `config.Settings()`.
    
    {* ../../docs_src/settings/app02_an_py39/main.py hl[6,12:13] *}
    
    /// tip | Совет
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 18.3K bytes
    - Viewed (0)
  2. docs/pt/docs/advanced/settings.md

    {* ../../docs_src/settings/app02_an_py39/config.py hl[10] *}
    
    Perceba que agora não criamos uma instância padrão `settings = Settings()`.
    
    ### O arquivo principal da aplicação { #the-main-app-file }
    
    Agora criamos uma dependência que retorna um novo `config.Settings()`.
    
    {* ../../docs_src/settings/app02_an_py39/main.py hl[6,12:13] *}
    
    /// tip | Dica
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 13K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_settings/test_app03.py

    import pytest
    from fastapi.testclient import TestClient
    from pytest import MonkeyPatch
    
    
    @pytest.fixture(
        name="mod_path",
        params=[
            pytest.param("app03_py39"),
            pytest.param("app03_an_py39"),
        ],
    )
    def get_mod_path(request: pytest.FixtureRequest):
        mod_path = f"docs_src.settings.{request.param}"
        return mod_path
    
    
    @pytest.fixture(name="main_mod")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 1.2K bytes
    - Viewed (0)
  4. docs/de/docs/advanced/settings.md

    {* ../../docs_src/settings/app02_an_py39/config.py hl[10] *}
    
    Beachten Sie, dass wir jetzt keine Standardinstanz `settings = Settings()` erstellen.
    
    ### Die Haupt-Anwendungsdatei { #the-main-app-file }
    
    Jetzt erstellen wir eine Abhängigkeit, die ein neues `config.Settings()` zurückgibt.
    
    {* ../../docs_src/settings/app02_an_py39/main.py hl[6,12:13] *}
    
    /// tip | Tipp
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 24 10:28:19 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  5. docs/es/docs/advanced/settings.md

    {* ../../docs_src/settings/app02_an_py39/config.py hl[10] *}
    
    Nota que ahora no creamos una instance por defecto `settings = Settings()`.
    
    ### El archivo principal de la app { #the-main-app-file }
    
    Ahora creamos una dependencia que devuelve un nuevo `config.Settings()`.
    
    {* ../../docs_src/settings/app02_an_py39/main.py hl[6,12:13] *}
    
    /// tip | Consejo
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  6. docs/en/docs/advanced/settings.md

    {* ../../docs_src/settings/app02_an_py39/config.py hl[10] *}
    
    Notice that now we don't create a default instance `settings = Settings()`.
    
    ### The main app file { #the-main-app-file }
    
    Now we create a dependency that returns a new `config.Settings()`.
    
    {* ../../docs_src/settings/app02_an_py39/main.py hl[6,12:13] *}
    
    /// tip
    
    We'll discuss the `@lru_cache` in a bit.
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  7. pyproject.toml

        "docs_src/schema_extra_example/tutorial001_pv1_py39.py",
        "docs_src/path_operation_advanced_configuration/tutorial007_pv1_py39.py",
        "docs_src/settings/app03_py39/config_pv1.py",
        "docs_src/settings/app03_an_py39/config_pv1.py",
        "docs_src/settings/tutorial001_pv1_py39.py",
    ]
    
    [tool.coverage.report]
    show_missing = true
    sort = "-Cover"
    
    [tool.coverage.html]
    show_contexts = true
    
    [tool.ruff.lint]
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  8. docs/zh/docs/advanced/settings.md

    ### 主应用程序文件
    
    现在我们创建一个依赖项,返回一个新的 `config.Settings()`。
    
    {* ../../docs_src/settings/app02_an_py39/main.py hl[6,12:13] *}
    
    /// tip
    
    我们稍后会讨论 `@lru_cache`。
    
    目前,您可以将 `get_settings()` 视为普通函数。
    
    ///
    
    然后,我们可以将其作为依赖项从“路径操作函数”中引入,并在需要时使用它。
    
    {* ../../docs_src/settings/app02_an_py39/main.py hl[17,19:21] *}
    
    ### 设置和测试
    
    然后,在测试期间,通过创建 `get_settings` 的依赖项覆盖,很容易提供一个不同的设置对象:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/bigger-applications.md

    {* ../../docs_src/bigger_applications/app_an_py39/routers/users.py hl[1,3] title["app/routers/users.py"] *}
    
    ### *Path operations* with `APIRouter` { #path-operations-with-apirouter }
    
    And then you use it to declare your *path operations*.
    
    Use it the same way you would use the `FastAPI` class:
    
    {* ../../docs_src/bigger_applications/app_an_py39/routers/users.py hl[6,11,16] title["app/routers/users.py"] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 10 08:55:32 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  10. docs/de/docs/tutorial/bigger-applications.md

    {* ../../docs_src/bigger_applications/app_an_py39/routers/users.py hl[1,3] title["app/routers/users.py"] *}
    
    ### *Pfadoperationen* mit `APIRouter` { #path-operations-with-apirouter }
    
    Und dann verwenden Sie ihn, um Ihre *Pfadoperationen* zu deklarieren.
    
    Verwenden Sie ihn auf die gleiche Weise wie die Klasse `FastAPI`:
    
    {* ../../docs_src/bigger_applications/app_an_py39/routers/users.py hl[6,11,16] title["app/routers/users.py"] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 10 13:54:34 UTC 2025
    - 21.3K bytes
    - Viewed (0)
Back to top