Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typo found by Aigerim doing the tutorial. #70

Merged
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
2 changes: 1 addition & 1 deletion authentication_authorization/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ You might have noticed that you didn't have to use your password apart from back

First lets make things secure. We will protect our `post_new`, `post_edit` and `post_publish` views so that only logged-in users can access them. Django ships with some nice helpers for that using a kind-of advanced topic of _decorators_. Don't worry about the technicalities now, you can read up on these later. The decorator to use is shipped in Django in a module `django.contrib.auth.decorators` and is named `login_required`.

So edit your `mysite/views.py` and add these lines at the top where all the imports are:
So edit your `blog/views.py` and add these lines at the top where all the imports are:

```
from django.contrib.auth.decorators import login_required
Expand Down