Plugin allowing Datasette templates to be edited within Datasette
Project description
datasette-edit-templates
Plugin allowing Datasette templates to be edited within Datasette.
Installation
Install this plugin in the same environment as Datasette.
$ datasette install datasette-edit-templates
Usage
Once installed, sign in as the root user using datasette mydb.db --root
.
On startup. a _templates_
table will be created in the database you are running Datasette against.
Use the app menu to navigate to the /-/edit-templates
page, and edit templates there.
Changes should become visible instantly, and will be persisted to your database.
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd datasette-edit-templates
python3 -mvenv venv
source venv/bin/activate
Or if you are using pipenv
:
pipenv shell
Now install the dependencies and tests:
pip install -e '.[test]'
To run the tests:
pytest
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for datasette-edit-templates-0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94982d3f2dea843c9c98419cf49437dbb4f56059685140b8280d828cb4cf9b6d |
|
MD5 | 7fce893d1ab5156f9dae81beb946eacf |
|
BLAKE2b-256 | 586ffcefcf57d815ba5d47360c437bcb00b91b7c2e03a71860a56b446408cc3e |
Hashes for datasette_edit_templates-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 993f206c66be5bb06d0b7c623b70c7748d028ab279777d2c726022b8123a9061 |
|
MD5 | a5ba4098c3ee74565c10094bbe8ac99a |
|
BLAKE2b-256 | 6bdd57b5e7bfc518734af03638d25190323d81dd87c98a4dddb1ce77de5a08a6 |