Option to automatically configure based on directory layout
See original GitHub issueMy Datasette projects increasingly take on the following structure:
metadata.json
with the metadata- One or more
something.db
database files - A
templates/
folder with some custom templates - A
plugins/
folder with some custom plugins
Then I have to run Datasette like this:
datasette *.db -m metadata.json --template-dir=templates --plugins-dir=plugins
It would be really interesting if Datasette had a special mode where you could point it at a directory with the above layout and it would automatically configure itself based on the contents.
Maybe even allow datasette serve
to detect if it was passed a single argument that’s a directory, not a file, and kick in to “directory layout configuration mode” in that case:
datasette .
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:9 (9 by maintainers)
Top Results From Across the Web
Step 4 - Configure Group Policy Settings for Automatic Updates
To use this setting, select Enabled. Then in Options under Configure automatic updating, select one of the options (2, 3, 4, or 5)....
Read more >Configure the source tree - Apache HTTP Server Version 2.4
Define a directory layout. --enable-layout= LAYOUT: Configure the source code and build scripts to assume an installation tree based on the layout LAYOUT...
Read more >Sample Ansible setup
Sample directory layout With more tasks to automate, you can consider moving your playbooks into a sub-directory called playbooks/ . If you do...
Read more >Configuration and credential file settings - AWS Documentation
The AWS CLI stores sensitive credential information that you specify with aws configure in a local file named credentials , in a folder...
Read more >Configuring Project Structure | PyCharm Documentation
In PyCharm, content is a collection of files with which you are currently working, possibly organized in a hierarchy of subfolders. The top-level...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Documentation: https://datasette.readthedocs.io/en/latest/config.html#configuration-directory-mode
As an alternative to
--static
this could work by letting you create the following:static/css/
static/js/
Which would be automatically mounted at
/js/...
and/css/...
Or maybe just mount
static/
at/static/
instead?