Skip to content

Commit 4dcccae

Browse files
committed
Doc: Fix grammar error
1 parent 5d67258 commit 4dcccae

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

load_multiple_users.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -784,12 +784,12 @@ Add a login link for both the student and the teacher in the `base.html` file.
784784
{% endblock %}
785785
```
786786

787-
Notice how I have used the `if` statement to check if the user is a student or a teacher. If the user is a student, he will be redirected to the `index_student` page. If the user is a teacher, he will be redirected to the `index_teacher` page. If the user is not authenticated, he will be redirected to the `login_student` or `login_teacher` page.
787+
Notice how we have used the `if` statement to check if the user is a student or a teacher. If the user is a student, he will be redirected to the `index_student` page. If the user is a teacher, he will be redirected to the `index_teacher` page. If the user is not authenticated, he will be redirected to the `login_student` or `login_teacher` page.
788788

789789

790790
### Flash Messages
791791

792-
To display the flash message seen earlier, I will update the `block content` with the following code:
792+
To display the flash message seen earlier, we will update the `block content` with the following code:
793793

794794
`base.html: Flash Message`
795795
```html
@@ -814,11 +814,11 @@ To display the flash message seen earlier, I will update the `block content` wit
814814
{% endblock %}
815815
```
816816

817-
I retrieve the flash messages from `get_flashed_messages()` function and save them in a `messages` variable. I can then loop through the messages and display them.
817+
We retrieve the flash messages from `get_flashed_messages()` function and save them in a `messages` variable. We can then loop through the messages and display them.
818818

819819
### Update The Homepage
820820

821-
At the moment, both the teacher and the student have access to the same home page. I would like to ensure that each user has access to the right home page, in the event that we may consider to use this page as a dashboard where only the current user's information if to be viewed.
821+
At the moment, both the teacher and the student have access to the same home page. We would like to ensure that each user has access to the right home page, in the event that we may consider to use this page as a dashboard where only the current user's information is to be viewed.
822822

823823
Let us update our `routes` module.
824824

@@ -849,13 +849,13 @@ def index_teacher():
849849
)
850850
```
851851

852-
I have used the `login_required` decorator to ensure that the user is authenticated before accessing the home page. Let us create these two templates.
852+
We have used the `login_required` decorator to ensure that the user is authenticated before accessing the home page. Let us create these two templates.
853853

854854
```python
855855
(venv) $ touch app/templates/index_student.html app/templates/index_teacher.html
856856
```
857857

858-
In these templates, we are going display some of the user's information. Add these information to both templates, changing where appropriate. I will show you how to display a student's information below.
858+
In these templates, we are going display some of the user's information. Add these information to both templates, changing where appropriate. We will show you how to display a student's information below.
859859

860860
`index_student.html: Display Student Information`
861861
```html

0 commit comments

Comments
 (0)