Skip to content
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 en/django_forms/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ We need to create a file `post_edit.html` in the `blog/templates/blog` directory
- We need a `Save` button. We do that with an HTML button: `<button type="submit">Save</button>`.
- And finally, just after the opening `<form ...>` tag we need to add {% raw %}`{% csrf_token %}`{% endraw %}. This is very important, since it makes your forms secure! If you forget about this bit, Django will complain when you try to save the form:

![CSFR Forbidden page](images/csrf2.png)
![CSRF Forbidden page](images/csrf2.png)

OK, so let's see how the HTML in `post_edit.html` should look:

Expand Down