kopia lustrzana https://github.com/simonw/datasette
Link to request object documentation, refs #706
rodzic
50652f474b
commit
4b96857f17
|
@ -669,7 +669,7 @@ Extra template variables that should be made available in the rendered template
|
||||||
The name of the view being displayed. (`index`, `database`, `table`, and `row` are the most important ones.)
|
The name of the view being displayed. (`index`, `database`, `table`, and `row` are the most important ones.)
|
||||||
|
|
||||||
``request`` - object
|
``request`` - object
|
||||||
The current HTTP request object. ``request.scope`` provides access to the ASGI scope.
|
The current HTTP :ref:`internals_request`.
|
||||||
|
|
||||||
``datasette`` - :ref:`internals_datasette`
|
``datasette`` - :ref:`internals_datasette`
|
||||||
You can use this to access plugin configuration options via ``datasette.plugin_config(your_plugin_name)``
|
You can use this to access plugin configuration options via ``datasette.plugin_config(your_plugin_name)``
|
||||||
|
|
Ładowanie…
Reference in New Issue