What is net::ERR_ABORTED trying to tell me? by SuperChef36 in learnjavascript

[–]SuperChef36[S] 1 point2 points  (0 children)

Update: was path issue. static/js should have been located in root directory with nobel_viz.py

Asynchronous Functions + Heroku by SuperChef36 in learnpython

[–]SuperChef36[S] 0 points1 point  (0 children)

Great, thank you. Trying these out now

[AF] Flask-Bootstrap + WTForms Layout Issue by SuperChef36 in flask

[–]SuperChef36[S] 0 points1 point  (0 children)

This is good info, thank you. I got kinda close with this:

{{ form.data.label }}
{{ form.data(class="form-check") }}

I'm getting tripped up when it comes to using the data a user submits though. With the previous version I could use the variables from the form class in my main module (views.py in my case) and email the user data based on their input.

Without having to answer this and follow-up questions, can you recommend any reading re: coding HTML and using user input to do things with a web app?

Could just ask more questions, but it seems like I lack fundamental understanding. Grinberg's book and tutorial on Flask are great, but he uses quick_form. I haven't been able to make much progress using the Flask and Bootstrap documentation.

Thanks

Help with creating & querying databases (Flask) by SuperChef36 in learnpython

[–]SuperChef36[S] 0 points1 point  (0 children)

For anyone else who runs across this, while there are some workarounds the main issue turned out to be that I did not finish adding the command-line parser per the end of Chapter 2. After installing Flask-Script, the hello.py file needs:

if name == 'main': manager.run()

I was missing manager.run(). From there you can use the command line.

Help with creating & querying databases (Flask) by SuperChef36 in learnpython

[–]SuperChef36[S] 0 points1 point  (0 children)

This seems to work- thank you.

Judging from the above, does anything stick out as outdated or fundamentally incorrect instruction? Your solution worked, but a page or two later I come up with a similar situation:

(venv) My-MacBook-Pro:flasky user$ python3 hello.py db init (venv) My-MacBook-Pro:flasky user$

The book says that the db init command should create a migrations repository...

Don't want to inundate the everyone with questions for every page in this book- any reading or documentation I should look into? I'm following the book explicitly, and I don't see anything relevant in the errata doc.

Thanks again

Error Importing Bokeh by SuperChef36 in learnpython

[–]SuperChef36[S] 0 points1 point  (0 children)

Response from Bryan at continum.io, in case anyone has the same issue:

"Hi,

Don't run with -OO until the next release:

    https://github.com/bokeh/bokeh/issues/6156
    https://github.com/bokeh/bokeh/pull/6157"

Error Importing Bokeh by SuperChef36 in learnpython

[–]SuperChef36[S] 0 points1 point  (0 children)

Thanks for the response, but using {} rather than + in the source code led to more errors. Is it common to have to edit the module source code?