Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for Magic (0.2 sec)

  1. docs/en/docs/how-to/sql-databases-peewee.md

    And `threading.local` is not compatible with the new async features of modern Python.
    
    !!! note "Technical Details"
        `threading.local` is used to have a "magic" variable that has a different value for each thread.
    
        This was useful in older frameworks designed to have one single thread per request, no more, no less.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Jan 16 13:23:25 GMT 2024
    - 23.6K bytes
    - Viewed (1)
  2. docs/en/docs/advanced/security/oauth2-scopes.md

    !!! tip
        The important and "magic" thing here is that `get_current_user` will have a different list of `scopes` to check for each *path operation*.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 21:21:35 GMT 2024
    - 20.5K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/sql-databases.md

    {!../../../docs_src/sql_databases/sql_app/models.py!}
    ```
    
    ### Create the relationships
    
    Now create the relationships.
    
    For this, we use `relationship` provided by SQLAlchemy ORM.
    
    This will become, more or less, a "magic" attribute that will contain the values from other tables related to this one.
    
    ```Python hl_lines="2  15  26"
    {!../../../docs_src/sql_databases/sql_app/models.py!}
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 29.6K bytes
    - Viewed (0)
Back to top