mirror of
https://github.com/odoo/documentation.git
synced 2026-03-26 13:59:55 +07:00
[FIX] tutorials/importable_modules: fix typo in request.not_found()
closes odoo/documentation#16295 Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
This commit is contained in:
@@ -863,7 +863,7 @@ response object:
|
|||||||
- `request.redirect(location, code=303, local=True)` to redirect to a different URL; the `local`
|
- `request.redirect(location, code=303, local=True)` to redirect to a different URL; the `local`
|
||||||
argument is used to specify whether the redirection should be relative to the website or not
|
argument is used to specify whether the redirection should be relative to the website or not
|
||||||
(default: `True`).
|
(default: `True`).
|
||||||
- `request.notfound()` to return a `werkzeug.HTTPException` exception to signal a 404 error to
|
- `request.not_found()` to return a `werkzeug.HTTPException` exception to signal a 404 error to
|
||||||
the website.
|
the website.
|
||||||
- `request.make_response(data, headers=None, cookies=None, status=200)` to manually create a
|
- `request.make_response(data, headers=None, cookies=None, status=200)` to manually create a
|
||||||
`werkzeug.Response` object; the `status` argument is the HTTP status code to return (default:
|
`werkzeug.Response` object; the `status` argument is the HTTP status code to return (default:
|
||||||
|
|||||||
Reference in New Issue
Block a user