Plugins in directory mode #1317
-
Hello, how can i install / use Plugins like datsette-media in directory mode? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The Try and think of the "plugins" in directory mode less as a full blown library or module, but as python scripts that happen to use one of Datasette's plugin hooks. |
Beta Was this translation helpful? Give feedback.
The
plugins
directory in directory mode only supports single-file plugins. If the plugin you're trying to install isn't a single file, you need to install your plugin using one of the normal methods: pip install (e.g.,pip install datasette-media
) or datasette install (e.g.,datasette install datasette-media
)Try and think of the "plugins" in directory mode less as a full blown library or module, but as python scripts that happen to use one of Datasette's plugin hooks.