mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Updated settings help URL to avoid redirect
This commit is contained in:
parent
714b4df1b1
commit
ab7d6a7179
4 changed files with 5 additions and 4 deletions
|
|
@ -400,7 +400,7 @@ def uninstall(packages, yes):
|
||||||
"--setting",
|
"--setting",
|
||||||
"settings",
|
"settings",
|
||||||
type=Setting(),
|
type=Setting(),
|
||||||
help="Setting, see docs.datasette.io/en/stable/config.html",
|
help="Setting, see docs.datasette.io/en/stable/settings.html",
|
||||||
multiple=True,
|
multiple=True,
|
||||||
)
|
)
|
||||||
@click.option(
|
@click.option(
|
||||||
|
|
|
||||||
|
|
@ -493,7 +493,7 @@ class DataView(BaseView):
|
||||||
raise DatasetteError(
|
raise DatasetteError(
|
||||||
"""
|
"""
|
||||||
SQL query took too long. The time limit is controlled by the
|
SQL query took too long. The time limit is controlled by the
|
||||||
<a href="https://docs.datasette.io/en/stable/config.html#sql-time-limit-ms">sql_time_limit_ms</a>
|
<a href="https://docs.datasette.io/en/stable/settings.html#sql-time-limit-ms">sql_time_limit_ms</a>
|
||||||
configuration option.
|
configuration option.
|
||||||
""",
|
""",
|
||||||
title="SQL Interrupted",
|
title="SQL Interrupted",
|
||||||
|
|
|
||||||
|
|
@ -94,7 +94,8 @@ datasette serve --help
|
||||||
--memory Make /_memory database available
|
--memory Make /_memory database available
|
||||||
--config CONFIG Deprecated: set config option using
|
--config CONFIG Deprecated: set config option using
|
||||||
configname:value. Use --setting instead.
|
configname:value. Use --setting instead.
|
||||||
--setting SETTING... Setting, see docs.datasette.io/en/stable/config.html
|
--setting SETTING... Setting, see
|
||||||
|
docs.datasette.io/en/stable/settings.html
|
||||||
--secret TEXT Secret used for signing secure values, such as
|
--secret TEXT Secret used for signing secure values, such as
|
||||||
signed cookies
|
signed cookies
|
||||||
--root Output URL that sets a cookie authenticating the
|
--root Output URL that sets a cookie authenticating the
|
||||||
|
|
|
||||||
|
|
@ -155,7 +155,7 @@ def test_sql_time_limit(app_client_shorter_time_limit):
|
||||||
response = app_client_shorter_time_limit.get("/fixtures?sql=select+sleep(0.5)")
|
response = app_client_shorter_time_limit.get("/fixtures?sql=select+sleep(0.5)")
|
||||||
assert 400 == response.status
|
assert 400 == response.status
|
||||||
expected_html_fragment = """
|
expected_html_fragment = """
|
||||||
<a href="https://docs.datasette.io/en/stable/config.html#sql-time-limit-ms">sql_time_limit_ms</a>
|
<a href="https://docs.datasette.io/en/stable/settings.html#sql-time-limit-ms">sql_time_limit_ms</a>
|
||||||
""".strip()
|
""".strip()
|
||||||
assert expected_html_fragment in response.text
|
assert expected_html_fragment in response.text
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue