Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for wrapping (0.31 sec)

  1. docs/de/docs/advanced/wsgi.md

    Dazu können Sie die `WSGIMiddleware` verwenden und damit Ihre WSGI-Anwendung wrappen, zum Beispiel Flask, Django usw.
    
    ## `WSGIMiddleware` verwenden
    
    Sie müssen `WSGIMiddleware` importieren.
    
    Wrappen Sie dann die WSGI-Anwendung (z. B. Flask) mit der Middleware.
    
    Und dann mounten Sie das auf einem Pfad.
    
    ```Python hl_lines="2-3  23"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:17:05 GMT 2024
    - 1.2K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/extra-models.md

    print(user_dict)
    ```
    
    we would get a Python `dict` with:
    
    ```Python
    {
        'username': 'john',
        'password': 'secret',
        'email': '******@****.***',
        'full_name': None,
    }
    ```
    
    #### Unwrapping a `dict`
    
    If we take a `dict` like `user_dict` and pass it to a function (or class) with `**user_dict`, Python will "unwrap" it. It will pass the keys and values of the `user_dict` directly as key-value arguments.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.7K bytes
    - Viewed (1)
Back to top