Configuration directory mode, closes #731

This commit is contained in:
Simon Willison 2020-04-27 09:30:24 -07:00 committed by GitHub
commit 25014ca25e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 251 additions and 34 deletions

View file

@ -27,8 +27,10 @@ Things you can do with plugins include:
or implement authentication, for example
`datasette-auth-github <https://github.com/simonw/datasette-auth-github>`__.
Using plugins
-------------
.. _plugins_installing:
Installing plugins
------------------
If a plugin has been packaged for distribution using setuptools you can use
the plugin by installing it alongside Datasette in the same virtual
@ -48,8 +50,10 @@ install`` such as a URL to a ``.zip`` file::
--install=datasette-plugin-demos \
--install=https://url-to-my-package.zip
Writing plugins
---------------
.. _plugins_writing_one_off:
Writing one-off plugins
-----------------------
The easiest way to write a plugin is to create a ``my_plugin.py`` file and
drop it into your ``plugins/`` directory. Here is an example plugin, which