Simon Willison
e5d01ca583
Fixed typo in release notes
2021-10-22 11:56:27 -07:00
Simon Willison
ff9ccfb031
Fixed typo in release notes
2021-10-14 12:23:43 -07:00
Simon Willison
8934507cdc
Release 0.59
...
Refs #942 , #1404 , #1405 , #1416 , #1420 , #1421 , #1422 , #1423 , #1425 , #1431 , #1443 , #1446 , #1449 , #1467 , #1469 , #1470 , #1488
2021-10-14 12:22:19 -07:00
Simon Willison
81bf9a9f3c
Updated --cors documentation, refs #1467
2021-10-14 12:19:03 -07:00
C. Titus Brown
0fdbf00484
Rework the --static documentation
...
Rework the `--static` documentation to better differentiate between the filesystem and serving locations. Closes #1457
Co-authored-by: Simon Willison <swillison@gmail.com>
2021-10-14 11:39:55 -07:00
Michael Tiemann
31352914c4
Update full_text_search.rst ( #1474 )
...
Change "above" to "below" to correct correspondence of reference to example.
2021-10-13 14:10:23 -07:00
Rhet Turnbull
68087440b3
Added instructions for installing plugins via pipx
...
Closes #1486
2021-10-13 14:09:10 -07:00
Simon Willison
63886178a6
Describe a common mistake using csrftoken()
2021-09-22 15:44:28 -07:00
Simon Willison
b28b6cd2fe
Warn that execute_write_fn(fn) should be a non-async function
2021-09-12 13:13:52 -07:00
Simon Willison
67cbf0ae72
Example for register_commands, refs #1449
2021-08-28 04:17:03 -07:00
Simon Willison
50c35b66a4
Added missing space
2021-08-28 04:14:38 -07:00
Simon Willison
d3ea367131
Release 0.59a2
...
Refs #942 , #1421 , #1423 , #1431 , #1443 , #1446 , #1449
2021-08-27 18:55:54 -07:00
Simon Willison
30c18576d6
register_commands() plugin hook, closes #1449
2021-08-27 18:39:42 -07:00
Tim Sherratt
93c3a7ffbf
Remove underscore from search mode parameter name ( #1447 )
...
The text refers to the parameter as `searchmode` but the `metadata.json` example uses `search_mode`. The latter doesn't actually seem to work.
2021-08-24 18:28:58 -07:00
Simon Willison
7e15422aac
Documentation for datasette.databases property, closes #1443
2021-08-19 14:23:43 -07:00
Simon Willison
d84e574e59
Ability to deploy demos of branches
...
* Ability to deploy additional branch demos, closes #1442
* Only run tests before deploy on main branch
* Documentation for continuous deployment
2021-08-19 14:09:38 -07:00
Simon Willison
77f46297a8
Rename --help-config to --help-settings, closes #1431
2021-08-12 18:01:57 -07:00
Simon Willison
e837095ef3
Column metadata, closes #942
2021-08-12 16:53:23 -07:00
Simon Willison
ad90a72afa
Release 0.59a1
...
Refs #1425
2021-08-08 18:13:03 -07:00
Simon Willison
3bb6409a6c
render_cell() can now return an awaitable, refs
2021-08-08 16:05:00 -07:00
Simon Willison
de5ce2e563
datasette-pyinstrument
2021-08-08 10:37:51 -07:00
Simon Willison
61505dd0c6
Release 0.59a0
...
Refs #1404 , #1405 , #1416 , #1420 , #1422
2021-08-06 22:40:07 -07:00
Simon Willison
6dd14a1221
Improved links to example plugins
2021-08-06 22:38:47 -07:00
Simon Willison
66e143c76e
New hide_sql canned query option, refs #1422
2021-08-06 22:17:36 -07:00
Simon Willison
acc2243662
Quotes around '.[test]' for zsh
2021-08-05 08:47:18 -07:00
Simon Willison
a1f3830356
--cpu option for datasette publish cloudrun, closes #1420
2021-08-03 22:20:50 -07:00
Simon Willison
2208c3c68e
Spelling corrections plus CI job for codespell
...
* Use codespell to check spelling in documentation, refs #1417
* Fixed spelling errors spotted by codespell, closes #1417
* Make codespell a docs dependency
See also this TIL: https://til.simonwillison.net/python/codespell
2021-08-03 09:36:38 -07:00
Simon Willison
a679d0de87
Fixed spelling of 'receive' in a bunch of places
2021-08-03 09:11:18 -07:00
Simon Willison
121e10c29c
Doumentation and test for utils.parse_metadata(), closes #1405
2021-07-29 16:30:12 -07:00
Simon Willison
eccfeb0871
register_routes() plugin hook datasette argument, closes #1404
2021-07-26 16:16:46 -07:00
Simon Willison
6f1731f305
Updated cookiecutter installation link
2021-07-23 12:38:09 -07:00
Simon Willison
c73af5dd72
Release 0.58.1
...
Refs #1231 , #1396
2021-07-16 12:50:06 -07:00
Simon Willison
e27dd7c12c
Release 0.58
...
Refs #1365 , #1371 , #1377 , #1384 , #1387 , #1388 , #1389 , #1394
2021-07-14 17:33:04 -07:00
Simon Willison
7ea678db22
Warn about potential changes to get_metadata hook, refs #1384
2021-07-14 17:19:31 -07:00
Simon Willison
ba11ef27ed
Clarify when to use systemd restart
2021-07-13 22:43:13 -07:00
Simon Willison
2c4cd7141a
Consistently use /my-datasette in examples
2021-07-13 16:15:48 -07:00
Simon Willison
7f4c854db1
rST fix
2021-07-13 11:45:32 -07:00
Aslak Raanes
d71cac4981
How to configure Unix domain sockets with Apache
...
Example on how to use Unix domain socket option on Apache. Not testet.
(Usually I would have used [`ProxyPassReverse`](https://httpd.apache.org/docs/current/mod/mod_proxy.html#proxypassreverse ) in combination with `ProxyPass` , i.e.
```apache
ProxyPass /my-datasette/ http://127.0.0.1:8009/my-datasette/
ProxyPassReverse /my-datasette/ http://127.0.0.1:8009/my-datasette/
```
and
```apache
ProxyPass /my-datasette/ unix:/tmp/datasette.sock|http://localhost/my-datasette/
ProxyPassReverse /my-datasette/ unix:/tmp/datasette.sock|http://localhost/my-datasette/
```
2021-07-13 11:32:49 -07:00
Aslak Raanes
4054e96a39
Update deploying.rst ( #1392 )
...
Use same base url for Apache as in the example
2021-07-13 10:42:27 -07:00
Simon Willison
d792fc7cf5
Simplified nginx config examples
2021-07-10 17:29:42 -07:00
Simon Willison
180c7a5328
--uds option for binding to Unix domain socket, closes #1388
2021-07-10 16:37:30 -07:00
Simon Willison
83f6799a96
searchmode: raw table metadata property, closes #1389
2021-07-10 11:33:08 -07:00
Simon Willison
c8feaf0b62
systemctl restart datasette.service, closes #1390
2021-07-09 09:32:32 -07:00
Simon Willison
dbc61a1fd3
Documented ProxyPreserveHost On for Apache, closes #1387
2021-07-02 10:33:03 -07:00
Simon Willison
ea627baccf
Removed fallback parameter from get_metadata, refs #1384
2021-06-26 17:02:42 -07:00
Simon Willison
0d339a4897
Removed text about executing SQL, refs #1384
2021-06-26 16:04:39 -07:00
Simon Willison
089278b8db
rST fix, refs #1384
2021-06-26 15:49:07 -07:00
Brandon Roberts
baf986c871
New get_metadata() plugin hook for dynamic metadata
...
The following hook is added:
get_metadata(
datasette=self, key=key, database=database, table=table,
fallback=fallback
)
This gets called when we're building our metdata for the rest
of the system to use. We merge whatever the plugins return
with any local metadata (from metadata.yml/yaml/json) allowing
for a live-editable dynamic Datasette.
As a security precation, local meta is *not* overwritable by
plugin hooks. The workflow for transitioning to live-meta would
be to load the plugin with the full metadata.yaml and save.
Then remove the parts of the metadata that you want to be able
to change from the file.
* Avoid race condition: don't mutate databases list
This avoids the nasty "RuntimeError: OrderedDict mutated during
iteration" error that randomly happens when a plugin adds a
new database to Datasette, using `add_database`. This change
makes the add and remove database functions more expensive, but
it prevents the random explosion race conditions that make for
confusing user experience when importing live databases.
Thanks, @brandonrobertz
2021-06-26 15:24:54 -07:00
Simon Willison
ff17970ed4
Release 0.58a1
...
Refs #1365 , #1377
2021-06-24 09:24:59 -07:00
Simon Willison
b1fd24ac9f
skip_csrf(datasette, scope) plugin hook, refs #1377
2021-06-23 15:40:09 -07:00