Skip to content
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
17 changes: 13 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

<hr>

## Table of Content
## Table of Contents


- [Installation](#installation)
Expand All @@ -27,6 +27,7 @@
- [URL Variables](#url-variables)
- [Redirection](#redirection)
- [Message Flashing](#message-flashing)
- [How to Run](#how-to-run)


<hr>
Expand Down Expand Up @@ -145,7 +146,7 @@ if __name__=="__main__":

```

> Modern web applications use meaningful URLs to help users. Users are more likely to like a page and come back if the page uses a meaningful URL they can remember and use to directly visit a page.
> Modern web applications use meaningful URLs to help users. Users are more likely to like a page and come back if the page uses a meaningful URL they can remember and use to directly visit a page.

> Use the `route()` decorator to bind a function to a URL.

Expand All @@ -164,7 +165,7 @@ app = Flask(__name__)
def index():
return render_template('index.html')

@app.route("/")
@app.route("/about")
def about():
return render_template('about.html')

Expand Down Expand Up @@ -343,6 +344,14 @@ if __name__=="__main__":
app.run(debug=True)

```

## How to Run the Project

```bash
git clone https://github.com/sid86-dev/flask-tutorial.git
cd flask-tutorial
pip install flask
python app.py
Then open:
http://127.0.0.1:5000/

> Good applications and user interfaces are all about feedback. If the user does not get enough feedback they will probably end up hating the application. Flask provides a really simple way to give feedback to a user with the flashing system. The flashing system basically makes it possible to record a message at the end of a request and access it next request and only next request. This is usually combined with a layout template that does this. Note that browsers and sometimes web servers enforce a limit on cookie sizes. This means that flashing messages that are too large for session cookies causes message flashing to fail silently.