- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 40 for exception (0.47 sec)
-
docs/de/docs/tutorial/security/simple-oauth2.md
Wenn es keinen solchen Benutzer gibt, geben wir die Fehlermeldung „Incorrect username or password“ zurück. Für den Fehler verwenden wir die Exception `HTTPException`: === "Python 3.10+" ```Python hl_lines="3 79-81" {!> ../../../docs_src/security/tutorial003_an_py310.py!} ``` === "Python 3.9+" ```Python hl_lines="3 79-81"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 18:08:44 GMT 2024 - 14.3K bytes - Viewed (0) -
docs/en/docs/tutorial/security/simple-oauth2.md
Now, get the user data from the (fake) database, using the `username` from the form field. If there is no such user, we return an error saying "Incorrect username or password". For the error, we use the exception `HTTPException`: === "Python 3.10+" ```Python hl_lines="3 79-81" {!> ../../../docs_src/security/tutorial003_an_py310.py!} ``` === "Python 3.9+" ```Python hl_lines="3 79-81"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 12.5K bytes - Viewed (0) -
docs/en/docs/tutorial/sql-databases.md
And then we close it in the `finally` block. This way we make sure the database session is always closed after the request. Even if there was an exception while processing the request.
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) -
docs/de/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md
!!! tip "Tipp" Bevorzugen Sie die `Annotated`-Version, falls möglich. ```Python hl_lines="6 11" {!> ../../../docs_src/dependencies/tutorial006.py!} ``` ### Exceptions auslösen Die Abhängigkeiten können Exceptions `raise`n, genau wie normale Abhängigkeiten: === "Python 3.9+" ```Python hl_lines="10 15" {!> ../../../docs_src/dependencies/tutorial006_an_py39.py!} ```
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 18:09:16 GMT 2024 - 4.7K bytes - Viewed (0) -
docs/en/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md
!!! tip Prefer to use the `Annotated` version if possible. ```Python hl_lines="6 11" {!> ../../../docs_src/dependencies/tutorial006.py!} ``` ### Raise exceptions These dependencies can `raise` exceptions, the same as normal dependencies: === "Python 3.9+" ```Python hl_lines="10 15" {!> ../../../docs_src/dependencies/tutorial006_an_py39.py!} ``` === "Python 3.8+"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Oct 17 05:59:11 GMT 2023 - 4.1K bytes - Viewed (0) -
docs/en/docs/async.md
* the contents your program gave to the system to be written to disk * a remote API operation * a database operation to finish * a database query to return the results * etc. As the execution time is consumed mostly by waiting for <abbr title="Input and Output">I/O</abbr> operations, they call them "I/O bound" operations.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 23K bytes - Viewed (0) -
docs/fr/docs/contributing.md
Si, lors de l'exécution du script du serveur en direct, vous obtenez une erreur indiquant que la langue n'est pas prise en charge, quelque chose comme : ``` raise TemplateNotFound(template) jinja2.exceptions.TemplateNotFound: partials/language/xx.html ``` Cela signifie que le thème ne supporte pas cette langue (dans ce cas, avec un faux code de 2 lettres de `xx`).
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Jul 27 18:51:07 GMT 2023 - 16.3K bytes - Viewed (0) -
docs/en/docs/deployment/server-workers.md
## Deployment Concepts Here you saw how to use **Gunicorn** (or Uvicorn) managing **Uvicorn worker processes** to **parallelize** the execution of the application, take advantage of **multiple cores** in the CPU, and be able to serve **more requests**.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 9.1K bytes - Viewed (0) -
docs/ru/docs/contributing.md
##### Новый язык не поддерживается Если при запуске скрипта `./scripts/docs.py live` Вы получаете сообщение об ошибке, что язык не поддерживается, что-то вроде: ``` raise TemplateNotFound(template) jinja2.exceptions.TemplateNotFound: partials/language/xx.html ``` Сие означает, что тема не поддерживает этот язык (в данном случае с поддельным 2-буквенным кодом `xx`).
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sun Jun 11 21:38:15 GMT 2023 - 22.5K bytes - Viewed (0) -
docs/ja/docs/contributing.md
まず、メインページの`docs/ht/index.md`を翻訳します。 その後、「既存の言語」で、さきほどの手順を続行してください。 ##### まだサポートされていない新しい言語 ライブサーバースクリプトを実行するときに、サポートされていない言語に関するエラーが発生した場合は、次のように表示されます: ``` raise TemplateNotFound(template) jinja2.exceptions.TemplateNotFound: partials/language/xx.html ``` これは、テーマがその言語をサポートしていないことを意味します (この場合は、`xx`の2文字の偽のコード) 。 ただし、心配しないでください。テーマ言語を英語に設定して、ドキュメントの内容を翻訳できます。 その必要がある場合は、新しい言語の`mkdocs.yml`を次のように編集してください:
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sun Jun 11 21:38:15 GMT 2023 - 16.6K bytes - Viewed (0)