Skip to content
This repository was archived by the owner on Jun 19, 2025. It is now read-only.

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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
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