forked from microsoft/python-sample-vscode-flask-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removed single line comments and added multiline comments which makes code more readable.
- Loading branch information
1 parent
15f0092
commit e7bd6e8
Showing
1 changed file
with
10 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
# In this sample, the Flask app object is contained within the hello_app *module*; | ||
# that is, hello_app contains an __init__.py along with relative imports. Because | ||
# of this structure, a file like webapp.py cannot be run directly as the startup | ||
# file through Gunicorn; the result is "Attempted relative import in non-package". | ||
# | ||
# The solution is to provide a simple alternate startup file, like this present | ||
# startup.py, that just imports the app object. You can then just specify | ||
# startup:app in the Gunicorn command. | ||
""" | ||
In this sample, the Flask app object is contained within the hello_app *module*; | ||
that is, hello_app contains an __init__.py along with relative imports. Because | ||
of this structure, a file like webapp.py cannot be run directly as the startup | ||
file through Gunicorn; the result is "Attempted relative import in non-package". | ||
The solution is to provide a simple alternate startup file, like this present | ||
startup.py, that just imports the app object. You can then just specify | ||
startup:app in the Gunicorn command. | ||
""" | ||
|
||
from hello_app.webapp import app |