Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update hello-world.md #13

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion core/hello-world.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Open a new file called `catseverywhere.py` in your workshop directory. This migh
return 'Hello World!'

if __name__ == '__main__':
app.debug = True
app.run()

Let's break it down a little:
Expand All @@ -50,9 +51,10 @@ The `@` is new, it's called a [_decorator_](http://en.wikipedia.org/wiki/Python_
The function itself returns the string "Hello World!". This will be sent to the web browser.

if __name__ == '__main__':
app.debug = True
app.run()

This is Python for "if this script is run directly then start the application".
This is Python for "if this script is run directly then enable debug mode and start the application".

Now you can start running your first website!

Expand Down