Skip to content

Commit

Permalink
fix grammar errors
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiommendes committed Jul 12, 2018
1 parent 538ca86 commit b11e448
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion en/django_installation/instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ Before we do that, we should make sure we have the latest version of `pip`, the
### Installing packages with requirements
A requirements file keep a list of dependencies to be installed using
A requirements file keeps a list of dependencies to be installed using
`pip install`:
First create a `requirements.txt` file inside of `djangogirls/` folder:
Expand Down
2 changes: 1 addition & 1 deletion en/django_urls/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ urlpatterns = [
]
```

As you can see, we're now assigning a `view` called `post_list` to the root URL. This url pattern will match an empty string and the Django URL resolver will ignore the domain name (i.e., http://127.0.0.1:8000/) that prefix the full url path. This pattern will tell Django that `views.post_list` is the right place to go if someone enters your website at the 'http://127.0.0.1:8000/' address.
As you can see, we're now assigning a `view` called `post_list` to the root URL. This URL pattern will match an empty string and the Django URL resolver will ignore the domain name (i.e., http://127.0.0.1:8000/) that prefixes the full url path. This pattern will tell Django that `views.post_list` is the right place to go if someone enters your website at the 'http://127.0.0.1:8000/' address.

The last part, `name='post_list'`, is the name of the URL that will be used to identify the view. This can be the same as the name of the view but it can also be something completely different. We will be using the named URLs later in the project, so it is important to name each URL in the app. We should also try to keep the names of URLs unique and easy to remember.

Expand Down

0 comments on commit b11e448

Please sign in to comment.