mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Implemented import shortcuts, closes #957
This commit is contained in:
parent
d25b55ab5e
commit
8a25ea9bca
4 changed files with 29 additions and 1 deletions
|
|
@ -935,3 +935,18 @@ This example uses the :ref:`register_routes() <plugin_register_routes>` plugin h
|
|||
|
||||
|
||||
Adding ``?_trace=1`` will show that the trace covers both of those child tasks.
|
||||
|
||||
.. _internals_shortcuts:
|
||||
|
||||
Import shortcuts
|
||||
================
|
||||
|
||||
The following commonly used symbols can be imported directly from the ``datasette`` module:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
from datasette import Response
|
||||
from datasette import Forbidden
|
||||
from datasette import NotFound
|
||||
from datasette import hookimpl
|
||||
from datasette import actor_matches_allow
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue