Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 120 for normale (0.32 sec)

  1. docs/de/docs/async.md

    ### Andere Hilfsfunktionen
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 18:06:16 GMT 2024
    - 26.6K bytes
    - Viewed (0)
  2. docs/de/docs/tutorial/testing.md

    ```Python hl_lines="2  12  15-18"
    {!../../../docs_src/app_testing/tutorial001.py!}
    ```
    
    !!! tip "Tipp"
        Beachten Sie, dass die Testfunktionen normal `def` und nicht `async def` sind.
    
        Und die Anrufe an den Client sind ebenfalls normale Anrufe, die nicht `await` verwenden.
    
        Dadurch können Sie `pytest` ohne Komplikationen direkt nutzen.
    
    !!! note "Technische Details"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:20:01 GMT 2024
    - 7K bytes
    - Viewed (0)
  3. docs/de/docs/tutorial/handling-errors.md

    ### `HTTPException` importieren
    
    ```Python hl_lines="1"
    {!../../../docs_src/handling_errors/tutorial001.py!}
    ```
    
    ### Eine `HTTPException` in Ihrem Code auslösen
    
    `HTTPException` ist eine normale Python-<abbr title="Exception – Ausnahme, Fehler: Python-Objekt, das einen Fehler nebst Metadaten repräsentiert">Exception</abbr> mit einigen zusätzlichen Daten, die für APIs relevant sind.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:28:29 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  4. docs/de/docs/advanced/settings.md

        {!> ../../../docs_src/settings/app02/main.py!}
        ```
    
    !!! tip "Tipp"
        Wir werden das `@lru_cache` in Kürze besprechen.
    
        Im Moment nehmen Sie an, dass `get_settings()` eine normale Funktion ist.
    
    Und dann können wir das von der *Pfadoperation-Funktion* als Abhängigkeit einfordern und es überall dort verwenden, wo wir es brauchen.
    
    === "Python 3.9+"
    
        ```Python hl_lines="17  19-21"
    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)
  5. docs/en/docs/advanced/testing-database.md

    The only changes here are in the new testing file.
    
    Your normal dependency `get_db()` would return a database session.
    
    In the test, you could use a dependency override to return your *custom* database session instead of the one that would be used normally.
    
    In this example we'll create a temporary database only for the tests.
    
    ## File structure
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 3.5K bytes
    - Viewed (0)
  6. docs/en/docs/advanced/behind-a-proxy.md

    But if you go with your browser to <a href="http://127.0.0.1:8000" class="external-link" target="_blank">http://127.0.0.1:8000/app</a> you will see the normal response:
    
    ```JSON
    {
        "message": "Hello World",
        "root_path": "/api/v1"
    }
    ```
    
    So, it won't expect to be accessed at `http://127.0.0.1:8000/api/v1/app`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 11.6K bytes
    - Viewed (2)
  7. docs/en/docs/tutorial/first-steps.md

    * `HEAD`
    * `PATCH`
    * `TRACE`
    
    In the HTTP protocol, you can communicate to each path using one (or more) of these "methods".
    
    ---
    
    When building APIs, you normally use these specific HTTP methods to perform a specific action.
    
    Normally you use:
    
    * `POST`: to create data.
    * `GET`: to read data.
    * `PUT`: to update data.
    * `DELETE`: to delete data.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 12K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_schema_extra_example/test_tutorial005_an.py

                                        }
                                    ),
                                    "examples": {
                                        "normal": {
                                            "summary": "A normal example",
                                            "description": "A **normal** item works correctly.",
                                            "value": {
                                                "name": "Foo",
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Aug 26 18:03:13 GMT 2023
    - 6.7K bytes
    - Viewed (0)
  9. docs/de/docs/reference/exceptions.md

    Wenn Sie eine Exception auslösen, wird, wie es bei normalem Python der Fall wäre, der Rest der Ausführung abgebrochen. Auf diese Weise können Sie diese Exceptions von überall im Code werfen, um einen Request abzubrechen und den Fehler dem Client anzuzeigen.
    
    Sie können Folgendes verwenden:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 18:16:53 GMT 2024
    - 797 bytes
    - Viewed (0)
  10. tests/test_tutorial/test_testing_dependencies/test_tutorial001_py310.py

        assert response.status_code == 200, response.text
        assert response.json() == {
            "message": "Hello Users!",
            "params": {"q": "foo", "skip": 5, "limit": 10},
        }
    
    
    @needs_py310
    def test_normal_app():
        from docs_src.dependency_testing.tutorial001_py310 import app, client
    
        app.dependency_overrides = None
        response = client.get("/items/?q=foo&skip=100&limit=200")
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 2K bytes
    - Viewed (0)
Back to top