Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for url_for (0.04 sec)

  1. docs/es/docs/advanced/templates.md

    ```html
    Item ID: 42
    ```
    
    ### Argumentos de la Plantilla `url_for` { #template-url-for-arguments }
    
    También puedes usar `url_for()` dentro de la plantilla, toma como argumentos los mismos que usaría tu *path operation function*.
    
    Entonces, la sección con:
    
    {% raw %}
    
    ```jinja
    <a href="{{ url_for('read_item', id=id) }}">
    ```
    
    {% endraw %}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  2. docs/ru/docs/advanced/templates.md

    Например, для ID `42` это отрендерится как:
    
    ```html
    Item ID: 42
    ```
    
    ### Аргументы `url_for` в шаблоне { #template-url-for-arguments }
    
    Вы также можете использовать `url_for()` внутри шаблона — он принимает те же аргументы, что использовались бы вашей *функцией-обработчиком пути*.
    
    Таким образом, фрагмент:
    
    {% raw %}
    
    ```jinja
    <a href="{{ url_for('read_item', id=id) }}">
    ```
    
    {% endraw %}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  3. docs/ko/docs/advanced/templates.md

    ```Python
    {"id": id}
    ```
    
    예를 들어, ID가 `42`일 경우, 이는 다음과 같이 렌더링됩니다:
    
    ```html
    Item ID: 42
    ```
    
    ### 템플릿 `url_for` 인수
    
    템플릿 내에서 `url_for()`를 사용할 수도 있으며, 이는 *경로 작업 함수*에서 사용될 인수와 동일한 인수를 받습니다.
    
    따라서 다음과 같은 부분에서:
    
    {% raw %}
    
    ```jinja
    <a href="{{ url_for('read_item', id=id) }}">
    ```
    
    {% endraw %}
    
    ...이는 *경로 작업 함수* `read_item(id=id)`가 처리할 동일한 URL로 링크를 생성합니다.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  4. docs/pt/docs/advanced/templates.md

    ```html
    Item ID: 42
    ```
    
    ### Argumentos do `url_for` no template { #template-url-for-arguments }
    
    Você também pode usar `url_for()` dentro do template, ele recebe como argumentos os mesmos argumentos que seriam usados pela sua *path operation function*.
    
    Logo, a seção com:
    
    {% raw %}
    
    ```jinja
    <a href="{{ url_for('read_item', id=id) }}">
    ```
    
    {% endraw %}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  5. docs/de/docs/advanced/templates.md

    ```html
    Item ID: 42
    ```
    
    ### Template-`url_for`-Argumente { #template-url-for-arguments }
    
    Sie können `url_for()` auch innerhalb des Templates verwenden, es nimmt als Argumente dieselben Argumente, die von Ihrer *Pfadoperation-Funktion* verwendet werden.
    
    Der Abschnitt mit:
    
    {% raw %}
    
    ```jinja
    <a href="{{ url_for('read_item', id=id) }}">
    ```
    
    {% endraw %}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  6. docs/zh/docs/advanced/templates.md

    ```html
    Item ID: 42
    ```
    
    ### 模板 `url_for` 参数
    
    你还可以在模板内使用 `url_for()`,其参数与*路径操作函数*的参数相同.
    
    所以,该部分:
    
    {% raw %}
    
    ```jinja
    <a href="{{ url_for('read_item', id=id) }}">
    ```
    
    {% endraw %}
    
    ...将生成一个与处理*路径操作函数* `read_item(id=id)`的URL相同的链接
    
    例如。当ID为 `42`时, 会渲染成:
    
    ```html
    <a href="/items/42">
    ```
    
    ## 模板与静态文件
    
    你还可以在模板内部将 `url_for()`用于静态文件,例如你挂载的 `name="static"`的 `StaticFiles`。
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  7. docs/en/docs/advanced/templates.md

    ```html
    Item ID: 42
    ```
    
    ### Template `url_for` Arguments { #template-url-for-arguments }
    
    You can also use `url_for()` inside of the template, it takes as arguments the same arguments that would be used by your *path operation function*.
    
    So, the section with:
    
    {% raw %}
    
    ```jinja
    <a href="{{ url_for('read_item', id=id) }}">
    ```
    
    {% endraw %}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  8. docs/en/docs/release-notes.md

    * ✏️ Remove broken links from `external_links.yml`. PR [#10943](https://github.com/tiangolo/fastapi/pull/10943) by [@Torabek](https://github.com/Torabek).
    * 📝 Update template docs with more info about `url_for`. PR [#5937](https://github.com/tiangolo/fastapi/pull/5937) by [@EzzEddin](https://github.com/EzzEddin).
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 19:06:15 UTC 2025
    - 586.7K bytes
    - Viewed (0)
Back to top