Questions tagged [jinja2]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
364 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
1answer
550 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
1answer
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
1answer
65 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.
3
votes
0answers
910 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 ...