Cannot create custom Jinja2 Environment #2226
Answered
by
alex-oleshkevich
bnmnetp
asked this question in
Potential Issue
Replies: 3 comments
-
You use an outdated version of Starlette. env parameter available in newer
versions.
…On Mon, Jul 24, 2023, 23:29 Marcelo Trylesinski ***@***.***> wrote:
cc @alex-oleshkevich <https://github.com/alex-oleshkevich>
—
Reply to this email directly, view it on GitHub
<#2226 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAE3HSEVSD7GTIJH4JPSPYDXR3SMFANCNFSM6AAAAAA2WELY64>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Kludex
-
Sorry, I am using it with FastAPI and I did not realize that had the version pegged at 0.27.x |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Following the docs exactly as written here: https://www.starlette.io/templates/#using-custom-jinja2environment-instance
My goal is to turn off template caching. We have thousands of templates and those templates may be updated by other processes.
Thanks,
Beta Was this translation helpful? Give feedback.
All reactions