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
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.
The interface is only available to users with the edit-templates
permission.
The root
user is granted this permission by default. You can sign in as the root user using datasette mydb.db --root
.
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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7885b18682b5c9dc6465a4a47e0d7accc06523b23cdae063b09a30cdb16b7ba |
|
MD5 | 191b10a9b562f1d81e6dae2abe641f77 |
|
BLAKE2b-256 | f5b77703b8d3410027def6ed5e114dd1f3fbc8263a8c5b72bf09c6597e30fb72 |
Hashes for datasette_edit_templates-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 528ab75c907f4021a023956cc19e07bac29853d734175e9fc1959d3557018da6 |
|
MD5 | bb0c110c3923be8a3d5d3aee0447a52c |
|
BLAKE2b-256 | 8934b8a14073210618b6a3e43277acb1fd7b5e0389f1601b556d0bbe1caaecba |