Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for app02_an_py39 (0.06 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/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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. docs/ru/docs/tutorial/bigger-applications.md

    {* ../../docs_src/bigger_applications/app_an_py39/routers/users.py hl[1,3] title["app/routers/users.py"] *}
    
    ### Создание *эндпоинтов* с помощью `APIRouter` { #path-operations-with-apirouter }
    
    В дальнейшем используйте `APIRouter` для объявления *эндпоинтов*, точно также, как вы используете класс `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: Thu Dec 11 21:25:03 UTC 2025
    - 30.4K bytes
    - Viewed (0)
  10. docs/es/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* con `APIRouter` { #path-operations-with-apirouter }
    
    Y luego lo usas para declarar tus *path operations*.
    
    Úsalo de la misma manera que usarías la clase `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: Tue Dec 16 16:33:45 UTC 2025
    - 19.6K bytes
    - Viewed (0)
Back to top