Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 30 for StaticFiles (0.35 seconds)

  1. docs/zh/docs/advanced/templates.md

    ```
    
    ## 模板与静态文件
    
    你还可以在模板内部将 `url_for()`用于静态文件,例如你挂载的 `name="static"`的 `StaticFiles`。
    
    ```jinja hl_lines="4"
    {!../../docs_src/templates/templates/item.html!}
    ```
    
    本例中,它将链接到 `static/styles.css`中的CSS文件:
    
    ```CSS hl_lines="4"
    {!../../docs_src/templates/static/styles.css!}
    ```
    
    因为使用了 `StaticFiles`, **FastAPI** 应用会自动提供位于 URL `/static/styles.css`的 CSS 文件。
    
    ## 更多说明
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Oct 11 17:48:49 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  2. docs/en/docs/advanced/templates.md

    ```jinja hl_lines="4"
    {!../../docs_src/templates/templates/item.html!}
    ```
    
    In this example, it would link to a CSS file at `static/styles.css` with:
    
    ```CSS hl_lines="4"
    {!../../docs_src/templates/static/styles.css!}
    ```
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 3.5K bytes
    - Click Count (0)
  3. docs/tr/docs/advanced/testing-websockets.md

    {* ../../docs_src/app_testing/tutorial002.py hl[27:31] *}
    
    /// note | Not
    
    Daha fazla detay için Starlette'in <a href="https://www.starlette.dev/staticfiles/" class="external-link" target="_blank">Websockets'i Test Etmek</a> dokümantasyonunu inceleyin.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Oct 11 17:48:49 GMT 2025
    - 452 bytes
    - Click Count (0)
  4. docs/es/docs/how-to/custom-docs-ui-assets.md

    └── static
        ├── redoc.standalone.js
        ├── swagger-ui-bundle.js
        └── swagger-ui.css
    ```
    
    ### Sirve los archivos estáticos { #serve-the-static-files }
    
    * Importa `StaticFiles`.
    * "Monta" una instance de `StaticFiles()` en un path específico.
    
    {* ../../docs_src/custom_docs_ui/tutorial002_py39.py hl[7,11] *}
    
    ### Prueba los archivos estáticos { #test-the-static-files }
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 8.6K bytes
    - Click Count (0)
  5. docs/pt/docs/how-to/custom-docs-ui-assets.md

    └── static
        ├── redoc.standalone.js
        ├── swagger-ui-bundle.js
        └── swagger-ui.css
    ```
    
    ### Prover os arquivos estáticos { #serve-the-static-files }
    
    * Importe `StaticFiles`.
    * "Monte" a instância `StaticFiles()` em um caminho específico.
    
    {* ../../docs_src/custom_docs_ui/tutorial002_py39.py hl[7,11] *}
    
    ### Teste os arquivos estáticos { #test-the-static-files }
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 8.8K bytes
    - Click Count (0)
  6. docs/de/docs/how-to/custom-docs-ui-assets.md

    └── static
        ├── redoc.standalone.js
        ├── swagger-ui-bundle.js
        └── swagger-ui.css
    ```
    
    ### Die statischen Dateien bereitstellen { #serve-the-static-files }
    
    * Importieren Sie `StaticFiles`.
    * „Mounten“ Sie eine `StaticFiles()`-Instanz in einem bestimmten Pfad.
    
    {* ../../docs_src/custom_docs_ui/tutorial002_py39.py hl[7,11] *}
    
    ### Die statischen Dateien testen { #test-the-static-files }
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 9.5K bytes
    - Click Count (0)
  7. docs/en/docs/how-to/custom-docs-ui-assets.md

    │   ├── main.py
    └── static
        ├── redoc.standalone.js
        ├── swagger-ui-bundle.js
        └── swagger-ui.css
    ```
    
    ### Serve the static files { #serve-the-static-files }
    
    * Import `StaticFiles`.
    * "Mount" a `StaticFiles()` instance in a specific path.
    
    {* ../../docs_src/custom_docs_ui/tutorial002_py39.py hl[7,11] *}
    
    ### Test the static files { #test-the-static-files }
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 7.8K bytes
    - Click Count (0)
  8. docs/ru/docs/how-to/custom-docs-ui-assets.md

        ├── redoc.standalone.js
        ├── swagger-ui-bundle.js
        └── swagger-ui.css
    ```
    
    ### Предоставьте доступ к статическим файлам { #serve-the-static-files }
    
    * Импортируйте `StaticFiles`.
    * Смонтируйте экземпляр `StaticFiles()` в определённый путь.
    
    {* ../../docs_src/custom_docs_ui/tutorial002_py39.py hl[7,11] *}
    
    ### Протестируйте статические файлы { #test-the-static-files }
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 12.8K bytes
    - Click Count (0)
  9. docs/en/mkdocs.yml

      - OpenAPI:
        - reference/openapi/index.md
        - reference/openapi/docs.md
        - reference/openapi/models.md
      - reference/security/index.md
      - reference/encoders.md
      - reference/staticfiles.md
      - reference/templating.md
      - reference/testclient.md
    - fastapi-people.md
    - Resources:
      - resources/index.md
      - help-fastapi.md
      - contributing.md
      - project-generation.md
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 10:44:55 GMT 2025
    - 9.2K bytes
    - Click Count (0)
  10. docs/en/docs/release-notes.md

    * 🌐 Add German translation for `docs/de/docs/reference/staticfiles.md`. PR [#10841](https://github.com/tiangolo/fastapi/pull/10841) by [@nilslindemann](https://github.com/nilslindemann).
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 19:06:15 GMT 2025
    - 586.7K bytes
    - Click Count (0)
Back to Top