-
-
Notifications
You must be signed in to change notification settings - Fork 653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
index.html is not reliably loaded from a plugin #697
Comments
I think the bug is in this code: Lines 612 to 623 in 7508477
I added some debug logging to it and found that the bit that returns the plugin["templates_path"] list is producing this:
|
More debugging code shows this:
So the problem is that the default plugins that ship with Datasette are adding a template path to the lookup list! |
I think the bug is in this code: datasette/datasette/utils/__init__.py Lines 619 to 645 in 7508477
|
I need that code to set |
I'm going to release this as 0.37.2. This is the first time I've released a version NOT from master (since I don't want to ship the |
Cancel that plan: I'm pretty sure the Travis configuration that publishes a demo to Zeit Now and builds a Docker image isn't designed to handle releases that don't correspond to current master. I guess I'll release 0.38 instead. |
Shipped in Datasette 0.38. |
Needed this bug fix: simonw/datasette#697 Closes #2
Lots of detail in simonw/datasette-search-all#2 - short version is that I have a plugin with its own
index.html
template and Datasette intermittently fails to load it and uses the defaultindex.html
that ships with Datasette instead.Related:
The text was updated successfully, but these errors were encountered: