Search Options

Results per page
Sort
Preferred Languages
Advance

Results 561 - 570 of 630 for hl (0.02 sec)

  1. docs/ja/docs/tutorial/static-files.md

    # 静的ファイル
    
    `StaticFiles` を使用して、ディレクトリから静的ファイルを自動的に提供できます。
    
    ## `StaticFiles` の使用
    
    * `StaticFiles` をインポート。
    * `StaticFiles()` インスタンスを生成し、特定のパスに「マウント」。
    
    {* ../../docs_src/static_files/tutorial001.py hl[2,6] *}
    
    /// note | 技術詳細
    
    `from starlette.staticfiles import StaticFiles` も使用できます。
    
    **FastAPI**は、開発者の利便性のために、`starlette.staticfiles` と同じ `fastapi.staticfiles` を提供します。しかし、実際にはStarletteから直接渡されています。
    
    ///
    
    ### 「マウント」とは
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  2. docs/ko/docs/how-to/conditional-openapi.md

    ## 설정 및 환경변수의 조건부 OpenAPI
    
    동일한 Pydantic 설정을 사용하여 생성된 OpenAPI 및 문서 UI를 쉽게 구성할 수 있습니다.
    
    예를 들어:
    
    {* ../../docs_src/conditional_openapi/tutorial001.py hl[6,11] *}
    
    여기서 `openapi_url` 설정을 기본값인 `"/openapi.json"`으로 선언합니다.
    
    그런 뒤, 우리는 `FastAPI` 앱을 만들 때 그것을 사용합니다.
    
    환경 변수 `OPENAPI_URL`을 빈 문자열로 설정하여 OpenAPI(문서 UI 포함)를 비활성화할 수도 있습니다. 예를 들어:
    
    <div class="termy">
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Thu Nov 07 20:41:38 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  3. docs/ko/docs/tutorial/debugging.md

    # 디버깅
    
    예를 들면 Visual Studio Code 또는 PyCharm을 사용하여 편집기에서 디버거를 연결할 수 있습니다.
    
    ## `uvicorn` 호출
    
    FastAPI 애플리케이션에서 `uvicorn`을 직접 임포트하여 실행합니다
    
    {* ../../docs_src/debugging/tutorial001.py hl[1,15] *}
    
    ### `__name__ == "__main__"` 에 대하여
    
    `__name__ == "__main__"`의 주요 목적은 다음과 같이 파일이 호출될 때 실행되는 일부 코드를 갖는 것입니다.
    
    <div class="termy">
    
    ```console
    $ python myapp.py
    ```
    
    </div>
    
    그러나 다음과 같이 다른 파일을 가져올 때는 호출되지 않습니다.
    
    ```Python
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  4. docs/pt/docs/advanced/openapi-webhooks.md

    {* ../../docs_src/openapi_webhooks/tutorial001.py hl[9:13,36:53] *}
    
    Os webhooks que você define aparecerão no esquema do **OpenAPI** e na **página de documentação** gerada automaticamente.
    
    /// info | Informação
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  5. docs/ko/docs/advanced/wsgi.md

    `WSGIMiddleware`를 사용하여 WSGI 응용 프로그램(예: Flask, Django 등)을 감쌀 수 있습니다.
    
    ## `WSGIMiddleware` 사용하기
    
    `WSGIMiddleware`를 불러와야 합니다.
    
    그런 다음, WSGI(예: Flask) 응용 프로그램을 미들웨어로 포장합니다.
    
    그 후, 해당 경로에 마운트합니다.
    
    {* ../../docs_src/wsgi/tutorial001.py hl[2:3,23] *}
    
    ## 확인하기
    
    이제 `/v1/` 경로에 있는 모든 요청은 Flask 응용 프로그램에서 처리됩니다.
    
    그리고 나머지는 **FastAPI**에 의해 처리됩니다.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  6. docs/ko/docs/tutorial/dependencies/global-dependencies.md

    그런 경우에, 애플리케이션의 모든 *경로 작동*에 적용될 것입니다:
    
    {* ../../docs_src/dependencies/tutorial012_an_py39.py hl[16] *}
    
    그리고 [*경로 작동 데코레이터*에 `dependencies` 추가하기](dependencies-in-path-operation-decorators.md){.internal-link target=_blank}에 대한 아이디어는 여전히 적용되지만 여기에서는 앱에 있는 모든 *경로 작동*에 적용됩니다.
    
    ## *경로 작동* 모음에 대한 의존성
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  7. docs/ko/docs/tutorial/testing.md

    이름이 `test_` 로 시작하는 함수를 만드세요(`pytest` 의 표준적인 관례입니다).
    
    `httpx` 를 사용하는 것과 같은 방식으로 `TestClient` 객체를 사용하세요.
    
    표준적인 파이썬 문법을 이용하여 확인이 필요한 곳에 간단한 `assert` 문장을 작성하세요(역시 표준적인 `pytest` 관례입니다).
    
    {* ../../docs_src/app_testing/tutorial001.py hl[2,12,15:18] *}
    
    /// tip | 팁
    
    테스트를 위한 함수는 `async def` 가 아니라 `def` 로 작성됨에 주의하세요.
    
    그리고 클라이언트에 대한 호출도 `await` 를 사용하지 않는 일반 호출입니다.
    
    이렇게 하여 복잡한 과정 없이 `pytest` 를 직접적으로 사용할 수 있습니다.
    
    ///
    
    /// note | 기술 세부사항
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Tue Dec 10 11:24:48 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  8. docs/pt/docs/tutorial/security/first-steps.md

    {* ../../docs_src/security/tutorial001.py hl[6] *}
    
    /// tip | Dica
    
    
    
    ///
    
    	Esse `tokenUrl="token"` se refere a uma URL relativa que nós não criamos ainda. Como é uma URL relativa, é equivalente a `./token`.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  9. docs/en/docs/advanced/additional-status-codes.md

    To achieve that, import `JSONResponse`, and return your content there directly, setting the `status_code` that you want:
    
    {* ../../docs_src/additional_status_codes/tutorial001_an_py310.py hl[4,25] *}
    
    /// warning
    
    When you return a `Response` directly, like in the example above, it will be returned directly.
    
    It won't be serialized with a model, etc.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 2K bytes
    - Viewed (0)
  10. docs/fr/docs/tutorial/debugging.md

    ## Faites appel à `uvicorn`
    
    Dans votre application FastAPI, importez et exécutez directement `uvicorn` :
    
    {* ../../docs_src/debugging/tutorial001.py hl[1,15] *}
    
    ### À propos de `__name__ == "__main__"`
    
    Le but principal de `__name__ == "__main__"` est d'avoir du code qui est exécuté lorsque votre fichier est appelé avec :
    
    <div class="termy">
    
    ```console
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Oct 27 17:31:14 UTC 2024
    - 2.9K bytes
    - Viewed (0)
Back to top