Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for Reconfig (0.17 sec)

  1. docs_src/settings/app02_an_py39/config.py

    Sebastián Ramírez <******@****.***> 1688749933 +0200
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 159 bytes
    - Viewed (0)
  2. docs_src/settings/app03_an/config_pv1.py

    from pydantic import BaseSettings
    
    
    class Settings(BaseSettings):
        app_name: str = "Awesome API"
        admin_email: str
        items_per_user: int = 50
    
        class Config:
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 195 bytes
    - Viewed (0)
  3. docs_src/settings/app01/config.py

    Sebastián Ramírez <******@****.***> 1688749933 +0200
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 183 bytes
    - Viewed (0)
  4. docs_src/settings/app03_an/config.py

    from pydantic_settings import BaseSettings, SettingsConfigDict
    
    
    class Settings(BaseSettings):
        app_name: str = "Awesome API"
        admin_email: str
        items_per_user: int = 50
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 235 bytes
    - Viewed (0)
  5. .pre-commit-config.yaml

    Charlie Marsh <******@****.***> 1711472213 -0400
    Others
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Mar 26 16:56:53 GMT 2024
    - 737 bytes
    - Viewed (0)
  6. docs/en/layouts/custom.yml

          {{ layout.logo }}
        {%- elif config.theme.logo -%}
          {{ config.docs_dir }}/{{ config.theme.logo }}
        {%- endif -%}
      # End of custom modified logic
    
      # Logo (icon)
      - &logo_icon >-
        {{ config.theme.icon.logo or "" }}
    
    # Meta tags
    tags:
    
      # Open Graph
      og:type: website
      og:title: *page_title_with_site_name
      og:description: *page_description
      og:image: "{{ image.url }}"
    Others
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Jun 26 14:05:43 GMT 2023
    - 6.5K bytes
    - Viewed (0)
  7. docs_src/settings/app03/main.py

    from functools import lru_cache
    
    from fastapi import Depends, FastAPI
    
    from . import config
    
    app = FastAPI()
    
    
    @lru_cache
    def get_settings():
        return config.Settings()
    
    
    @app.get("/info")
    async def info(settings: config.Settings = Depends(get_settings)):
        return {
            "app_name": settings.app_name,
            "admin_email": settings.admin_email,
            "items_per_user": settings.items_per_user,
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 24 20:26:06 GMT 2023
    - 412 bytes
    - Viewed (0)
  8. docs/de/docs/advanced/settings.md

    Und dann aktualisieren Sie Ihre `config.py` mit:
    
    === "Pydantic v2"
    
        ```Python hl_lines="9"
        {!> ../../../docs_src/settings/app03_an/config.py!}
        ```
    
        !!! tip "Tipp"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:17:14 GMT 2024
    - 17.8K bytes
    - Viewed (0)
  9. .github/workflows/label-approved.yml

          env:
            GITHUB_CONTEXT: ${{ toJson(github) }}
          run: echo "$GITHUB_CONTEXT"
        - uses: docker://tiangolo/label-approved:0.0.4
          with:
            token: ${{ secrets.FASTAPI_LABEL_APPROVED }}
            config: >
              {
                "approved-1":
                  {
                    "number": 1,
                    "await_label": "awaiting-review"
                  }
    Others
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Jan 22 18:43:10 GMT 2024
    - 610 bytes
    - Viewed (0)
  10. docs/ko/docs/tutorial/schema-extra-example.md

        ```
    
    추가 정보는 있는 그대로 해당 모델의 **JSON 스키마** 결과에 추가되고, API 문서에서 사용합니다.
    
    === "Pydantic v2"
    
        Pydantic 버전 2에서 <a href="https://docs.pydantic.dev/latest/usage/model_config/" class="external-link" target="_blank">Pydantic 공식 문서: Model Config</a>에 나와 있는 것처럼 `dict`를 받는 `model_config` 어트리뷰트를 사용할 것입니다.
    
        `"json_schema_extra"`를 생성된 JSON 스키마에서 보여주고 싶은 별도의 데이터와 `examples`를 포함하는 `dict`으로 설정할 수 있습니다.
    
    === "Pydantic v1"
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Feb 09 12:35:46 GMT 2024
    - 13.6K bytes
    - Viewed (0)
Back to top