Welcome to website Discussions! #226
Replies: 6 comments 1 reply
-
@haraldschilly Sir you wrote the render.py of sagemath website? Can you please tell me which jinja2 contains pass_context function? |
Beta Was this translation helpful? Give feedback.
-
@haraldschilly I fresh cloned the repository but same thing is happening again and again. |
Beta Was this translation helpful? Give feedback.
-
@subho951m it's not a good practice to reply to a thread with a different topic. Yes, I came up with that render.py file, but that's a long time ago. despite that, I just searched for this and found it here: https://jinja.palletsprojects.com/en/3.0.x/api/#jinja2.pass_context So, well, my first question is, what version of jinja2 are you using? The travis-ci setup is here: https://github.com/sagemath/website/blob/master/.travis.yml and at least last time I checked, it was still working fine. |
Beta Was this translation helpful? Give feedback.
-
Ah, and I have no recollection, but the line is part of that commit ... interestingly, I must have seen deprecation warnings and acted preemptive to avoid this from breaking. So, my guess is, your jinja2 version is too old. |
Beta Was this translation helpful? Give feedback.
-
@haraldschilly Sir I checked @j2.contextfilter & @j2.evalcontextfilter , they both are working fine. While @j2.pass_context & @j2.pass_eval_context is creating issues. Now with @j2.contextfilter the website can be viewed locally. Thanks for the help sir. |
Beta Was this translation helpful? Give feedback.
-
@haraldschilly Sir |
Beta Was this translation helpful? Give feedback.
-
👋 Welcome!
We’re using Discussions as a place to connect with other members of our community. We hope that you:
build together 💪.
To get started, comment below with an introduction of yourself and tell us about what you do with this community.
Beta Was this translation helpful? Give feedback.
All reactions