@@ -10,8 +10,9 @@ Dependencies are automatically installed when FLask will be installed. So the ne
After you successfully installed Python, the next step is to deploy your first Flask Application. Let's start with an Basic Application, which looks like this.
```
```python
fromflaskimportFlask
app=Flask(__name__)
@app.route('/')
...
...
@@ -28,8 +29,8 @@ First, lets talk about the code.
As you understand what we did we can safe the app as `app.py` for example. To run the application you can use either the `flask` command or the python's `-m` switch. But first you need to tell your terminal the application to work with by exporting the `FLASK_APP` environment variable:
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.
```
```python
@app.route('/')
defindex():
return'Index Page'
...
...
@@ -16,7 +16,7 @@ def hello():
## Variable Rules
You can add variable sections to a URL by marking sections with `<variable_name>`. Your function then receives the `<variable_name>` as a keyword argument. Optionally, you can use a converter to specify the type of the argument like `<converter:variable_name>`.