Update app.py
This commit is contained in:
parent
83717fc220
commit
f1c35eb32f
1 changed files with 7 additions and 7 deletions
|
|
@ -518,11 +518,11 @@ class Flask(Scaffold):
|
|||
self._got_first_request = False
|
||||
self._before_request_lock = Lock()
|
||||
|
||||
"""# Add a static route using the provided static_url_path, static_host,
|
||||
# and static_folder if there is a configured static_folder.
|
||||
# Note we do this without checking if static_folder exists.
|
||||
# For one, it might be created while the server is running (e.g. during
|
||||
# development). Also, Google App Engine stores static files somewhere"""
|
||||
# Add a static route using the provided static_url_path, static_host,
|
||||
# and static_folder if there is a configured static_folder.
|
||||
# Note we do this without checking if static_folder exists.
|
||||
# For one, it might be created while the server is running (e.g. during
|
||||
# development). Also, Google App Engine stores static files somewhere
|
||||
|
||||
|
||||
if self.has_static_folder:
|
||||
|
|
@ -539,8 +539,8 @@ class Flask(Scaffold):
|
|||
view_func=lambda **kw: self_ref().send_static_file(**kw), # type: ignore # noqa: B950
|
||||
)
|
||||
|
||||
""" Set the name of the Click group in case someone wants to add
|
||||
the app's commands to another CLI tool."""
|
||||
#Set the name of the Click group in case someone wants to add
|
||||
#the app's commands to another CLI tool.
|
||||
self.cli.name = self.name
|
||||
|
||||
def _is_setup_finished(self) -> bool:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue