The errata list is a list of errors and their corrections that were found after the product was released.
The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.
Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update
Version |
Location |
Description |
Submitted by |
Date submitted |
ePub |
Page https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-iii-web-forms
2nd paragraph in Form Views |
Sometimes the syntax can confuse e.g.
"...to the template with the name form ..."
(a template named form?)
|
Mike Sweeney |
Nov 08, 2022 |
PDF |
Page Configuration Options Page 88
2nd Paragraph 1st Line |
The text in the book says "The development and production configurations each have a set of mail server configuration options."
This is the code snippet in the book
```class DevelopmentConfig(Config):
DEBUG = True
SQLALCHEMY_DATABASE_URI = os.environ.get('DEV_DATABASE_URL') or \
'sqlite:///' + os.path.join(basedir, 'data-dev.sqlite')
class ProductionConfig(Config):
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or \
'sqlite:///' + os.path.join(basedir, 'data.sqlite')```
It doesn't seem to have any mail server configuration options.
Please clarify if I am missing misunderstanding something.
Thank you.
|
Adnan Bayadwala |
Aug 28, 2023 |
|
3
Example 3-14 |
Example is:
<p>The local date and time is {{ moment(current_time).format('LLL') }}.</p><p>That was {{ moment(current_time).fromNow(refresh=True) }}</p>
Should be:
{% extends "base.html" %}
{% block page_content %}
<p>The local time and date is {{current_time}} {{ moment(current_time).format('LLL') }}.</p>
<p>That was {{ moment(current_time).fromNow(refresh=True) }}</p>
{% endblock %}
|
Anonymous |
Feb 02, 2018 |
PDF |
Page 17
Example 2-3. hello.py: Using Flask-Script |
Under example
Example 2-3. hello.py: Using Flask-Script
import statement,
" from flask.ext.script import Manager "
is not supported in python 3.8 version
Below import statement works good,
"from flask_script import Manager"
|
Shajahan D |
Feb 29, 2020 |
Printed |
Page 88 in second edition
Using an Application Factory |
I lost you when you said "because the application is created in the global scope, there is no way to apply configuration changes dynamically" ,
Isn't that what we do here?
***
num = 7
def change_global():
global num; num=8
change_global()
print("num: ",num)
|
Mike Sweeney |
Apr 10, 2022 |
Printed |
Page 88
Using an Application Factory |
"Because the application is created in the global scope, there is no way to apply configuration changes dynamically"
In python you can't change a global variable?
Also the fact that the application is created in a factory. It's not clear to me how that changes the application instance (the fact that it was created in a factory).
I'll continue creating the application in flasky.py and see where it runs into trouble.
Thanks for any clarification.
Great book.
|
Mike Sweeney |
Oct 17, 2022 |
PDF |
Page 183
1st paragraph |
"The final version of this query is added to the Post model"
But the query is added (and should) to the User model.
|
Anonymous |
Aug 25, 2020 |