We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When using a custom templates directory within a sub-folder, the templates are not used at runtime. For instance:
project/templates
datasette publish vercel --template-dir project/templates ...
Inspecting the generated code using --generate-dir option yields:
--generate-dir
templates
index.py
app = Datasette(..., template_dir="project/templates", ...).app()
I think the fix is to simply set template_dir="templates" in index.py.
template_dir="templates"
Note: it seems the same issue exists for plugins too.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
When using a custom templates directory within a sub-folder, the templates are not used at runtime. For instance:
project/templates
datasette publish vercel --template-dir project/templates ...
Inspecting the generated code using
--generate-dir
option yields:templates
directory is generated at the root of the distribution folder (with the proper content)index.py
is referencing the templates folder with the wrong path:I think the fix is to simply set
template_dir="templates"
inindex.py
.Note: it seems the same issue exists for plugins too.
The text was updated successfully, but these errors were encountered: