Skip to main content
2 votes

Can' get alert() to work in Survey

Looks like the js is verifying that !document.querySelector('#name').value is not blank. And actually, it's likely never blank. Whyzat? Because it has a default value of "Name" by definition: <...
DinoCoderSaurus's user avatar
2 votes

How do I turn debug mode ON in flask?

Have you tried export FLASK_DEBUG=ON
curiouskiwi's user avatar
  • 18.7k
1 vote
Accepted

My jinja not working like it should pset6 survey

You need to pass SHEET to the template in your render_template call.
curiouskiwi's user avatar
  • 18.7k
1 vote
Accepted

survey : ValueError: too many values to unpack (expected 4) in template sheet.html

Your answers is going to be a list of each list of answers (ie, a list of rows). The actual 'title' of those answers isn't in the file. You only need to iterate over each line and then iterate over ...
curiouskiwi's user avatar
  • 18.7k

Only top scored, non community-wiki answers of a minimum length are eligible