Skip to content

Commit

Permalink
Merge pull request #70 from kampfschlaefer/chapter_security_authentic…
Browse files Browse the repository at this point in the history
…ation_and_authorization

Typo found by Aigerim doing the tutorial.
  • Loading branch information
oinopion committed Jul 26, 2014
2 parents 8532190 + 462f955 commit 5438988
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 5438988

Please sign in to comment.