Questions tagged [jinja2]
The jinja2 tag has no usage guidance.
9
questions
0
votes
1
answer
226
views
CS50 2023 Finance Check50 issue
There is no way to get rid of the following check50 error:
:( logging in as registered user succeeds
application raised an exception (see the log for more details)
I found through googling that in ...
0
votes
1
answer
8
views
Finance - Quote: Toggle visibility between submit button and table
I'm happy that my finance website finally works properly!!!
The thing is that I'm trying to make it look like the staff's solution website and I can't seem to get quote.html to behave like theirs (...
0
votes
0
answers
493
views
Help wanted. Trying to make a table using a loop in jinja
My name is Sol and I'm kinda new here.
I'm trying to finish my CS50 PSET 7 and I got stuck.
Both in index.html and history.html I have the same problem. I'm trying to populate a table with info taken ...
0
votes
1
answer
4k
views
How to iterate over a list of values in a dict using jinja?
I have a dict with a list of values, basically each key has 10 values:
movies = {
'title': ['The Shawshank Redemption', 'The Godfather', ..., 'The Lord of the Rings: The Fellowship of the Ring'],
'...
1
vote
1
answer
1k
views
expected 400 but got 200 OK?
I have implemented Pset-7 (Finance) but check50 shows an error called expected 400 but got 200 in all my apology pages and it is being rejected by check50. Since it successfuly landed to apology page, ...
0
votes
1
answer
800
views
Final project: builtins.NameError NameError: name 'usd' is not defined
I'm working on my final project and when clicking on the link generated by the flask run command, I receive the following error: "builtins.NameError
NameError: name 'usd' is not defined".
I don't ...
0
votes
1
answer
2k
views
Jinja - for loop
stuck trying a for loop in jinja. I have a list/array called "priceNow" with 4 items "prices" in there. But i can't seem to get it to display in html via Jinja.
1) Here is the code that doesn't work, ...
0
votes
1
answer
72
views
Why did CS50, 2017 swap from HTML/CSS to Jinja for Pset7?
Any practical reason why the swap? Must have taken a lot of effort.
5
votes
0
answers
2k
views
How to call the usd function in the jinja template of quoted.html?
I want to display the cost of the share in Quote tab using the "usd" function defined in helpers.py.
I've tried adding app.jinja_env.globals.update(usd=usd)in application.py and then calling the ...