Skip to content

Commit 52c2eae

Browse files
committedJul 22, 2022
Doc(fix): Update path to images
1 parent 03a1b50 commit 52c2eae

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎flask_tables/flask_tables.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ FLASK_DEBUG=1
148148

149149
In the terminal, we can run the command `flask run` to start our flask server. You should be able to access the application at the following URL: http://127.0.0.1:5000/.
150150

151-
![Hello Flask World](images/flask_tables/hello-world.png)
151+
![Hello Flask World](/images/flask_tables/hello-world.png)
152152

153153
The `errors` module generally handles errors that come about as a result of using the application. We will use the `errorhandler` decorator to handle errors. Let us create two templates called `404.html` and `500.html`. These templates will be used to display the error messages. They will also allow the user to safely navigate back to the home page of the application.
154154

@@ -214,7 +214,7 @@ The error templates will contain the following error messages:
214214

215215
If you try to access a page that does not exist, you will be redirected to the `404.html` page. For example, if you try to access the following URL: http://127.0.0.1:5000/index1, you will get:
216216

217-
![404 Page Not Found](images/flask_tables/error-msg.png)
217+
![404 Page Not Found](/images/flask_tables/error-msg.png)
218218

219219

220220
## Bootstrap Table
@@ -326,7 +326,7 @@ def index():
326326
return render_template('bootstrap-table.html', users=users, title='Bootstrap Table')
327327
```
328328

329-
![Bootstrap Table](images/flask_tables/render-table.png)
329+
![Bootstrap Table](/images/flask_tables/render-table.png)
330330

331331
### Generate Content for the Table
332332

@@ -394,7 +394,7 @@ The function `create_fake_users()` will create `total` number of users and add t
394394

395395
Then you can reload your flask application on http://127.0.0.1:5000/ to see the fake users displayed in the table.
396396

397-
![Display Fake Users](images/flask_tables/fake-users.png)
397+
![Display Fake Users](/images/flask_tables/fake-users.png)
398398

399399
### Improving the UX of the Table
400400

0 commit comments

Comments
 (0)