Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for shykes (0.6 sec)

  1. docs/en/docs/advanced/templates.md

    {!../../../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!}
    ```
    
    And because you are using `StaticFiles`, that CSS file would be served automatically by your **FastAPI** application at the URL `/static/styles.css`.
    
    ## More details
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Jan 11 22:25:37 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  2. docs_src/templates/static/styles.css

    Sebastián Ramírez <******@****.***> 1585249793 +0100
    CSS
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Mar 26 19:09:53 GMT 2020
    - 25 bytes
    - Viewed (0)
  3. docs_src/templates/templates/item.html

    <html>
    <head>
        <title>Item Details</title>
        <link href="{{ url_for('static', path='/styles.css') }}" rel="stylesheet">
    </head>
    <body>
        <h1><a href="{{ url_for('read_item', id=id) }}">Item ID: {{ id }}</a></h1>
    </body>
    HTML
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Jan 11 22:25:37 GMT 2024
    - 235 bytes
    - Viewed (0)
  4. fastapi/openapi/docs.py

        """
        html += f"""
        <link rel="shortcut icon" href="{redoc_favicon_url}">
        <!--
        ReDoc doesn't change outer page styles
        -->
        <style>
          body {{
            margin: 0;
            padding: 0;
          }}
        </style>
        </head>
        <body>
        <noscript>
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 10.1K bytes
    - Viewed (0)
  5. docs/en/data/external_links.yml

    Articles:
      English:
      - author: Kurtis Pykes - NVIDIA
        link: https://developer.nvidia.com/blog/building-a-machine-learning-microservice-with-fastapi/
        title: Building a Machine Learning Microservice with FastAPI
      - author: Ravgeet Dhillon - Twilio
        link: https://www.twilio.com/en-us/blog/booking-appointments-twilio-notion-fastapi
        title: Booking Appointments with Twilio, Notion, and FastAPI
      - author: Abhinav Tripathi - Microsoft Blogs
    Others
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Mar 21 20:57:27 GMT 2024
    - 21.3K bytes
    - Viewed (2)
  6. docs/zh/docs/advanced/templates.md

    ```jinja hl_lines="4"
    {!../../../docs_src/templates/templates/item.html!}
    ```
    
    本例中,使用 `url_for()` 为模板添加 CSS 文件 `static/styles.css` 链接:
    
    ```CSS hl_lines="4"
    {!../../../docs_src/templates/static/styles.css!}
    ```
    
    因为使用了 `StaticFiles`, **FastAPI** 应用自动提供位于 URL `/static/styles.css`
    
    的 CSS 文件。
    
    ## 更多说明
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 30 22:45:16 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  7. docs/em/docs/advanced/templates.md

    ```jinja hl_lines="4"
    {!../../../docs_src/templates/templates/item.html!}
    ```
    
    👉 🖼, ⚫️ 🔜 🔗 🎚 📁 `static/styles.css` ⏮️:
    
    ```CSS hl_lines="4"
    {!../../../docs_src/templates/static/styles.css!}
    ```
    
    &amp; ↩️ 👆 ⚙️ `StaticFiles`, 👈 🎚 📁 🔜 🍦 🔁 👆 **FastAPI** 🈸 📛 `/static/styles.css`.
    
    ## 🌅 ℹ
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Dec 26 20:12:34 GMT 2023
    - 2.1K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_templates/test_tutorial001.py

        assert response.status_code == 200, response.text
        assert (
            b'<h1><a href="http://testserver/items/foo">Item ID: foo</a></h1>'
            in response.content
        )
        response = client.get("/static/styles.css")
        assert response.status_code == 200, response.text
        assert b"color: green;" in response.content
        shutil.rmtree("./templates")
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Jan 11 22:25:37 GMT 2024
    - 910 bytes
    - Viewed (0)
  9. fastapi/_compat.py

        )
    
        GetJsonSchemaHandler = Any  # type: ignore[assignment,misc]
        JsonSchemaValue = Dict[str, Any]  # type: ignore[misc]
        CoreSchema = Any  # type: ignore[assignment,misc]
    
        sequence_shapes = {
            SHAPE_LIST,
            SHAPE_SET,
            SHAPE_FROZENSET,
            SHAPE_TUPLE,
            SHAPE_SEQUENCE,
            SHAPE_TUPLE_ELLIPSIS,
        }
        sequence_shape_to_type = {
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  10. docs/de/docs/advanced/templates.md

    ```
    
    In diesem Beispiel würde das zu einer CSS-Datei unter `static/styles.css` verlinken, mit folgendem Inhalt:
    
    ```CSS hl_lines="4"
    {!../../../docs_src/templates/static/styles.css!}
    ```
    
    Und da Sie `StaticFiles` verwenden, wird diese CSS-Datei automatisch von Ihrer **FastAPI**-Anwendung unter der URL `/static/styles.css` bereitgestellt.
    
    ## Mehr Details
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 30 20:26:19 GMT 2024
    - 3.6K bytes
    - Viewed (0)
Back to top