mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Settings fix, refs #1433
This commit is contained in:
parent
ca4f83dc7b
commit
bbc4756f9e
1 changed files with 1 additions and 1 deletions
|
|
@ -277,7 +277,7 @@ class Datasette:
|
|||
self.static_mounts = static_mounts or []
|
||||
if config_dir and (config_dir / "config.json").exists():
|
||||
raise StartupError("config.json should be renamed to settings.json")
|
||||
if config_dir and (config_dir / "settings.json").exists() and not config:
|
||||
if config_dir and (config_dir / "settings.json").exists() and not settings:
|
||||
config = json.loads((config_dir / "settings.json").read_text())
|
||||
self._settings = dict(DEFAULT_SETTINGS, **(settings or {}))
|
||||
self.renderers = {} # File extension -> (renderer, can_render) functions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue