Skip to content
Merged
Show file tree
Hide file tree
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 django_forms/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ To create a new `Post` form, we need to call `PostForm()` and pass it to the tem

## Template

We need to create a file `post_edit.html` in the `blog/template/blog` directory. To make a form work we need several things:
We need to create a file `post_edit.html` in the `blog/templates/blog` directory. To make a form work we need several things:

- we have to display the form. We can do that for example with a simple `{{ form.as_p }}`.
- the line above needs to be wrapped with an HTML form tag: <`form method="POST">...</form>`
Expand Down
2 changes: 1 addition & 1 deletion homework/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Remember the chapter about querysets? We created a view `post_list` that display

Time to do something similar, but for draft posts.

Let's add a link in `mysite/templates/mysite/base.html` near the button for adding new posts (just above `<h1><a href="{% url 'blog.views.post_list' %}">Django Girls</a></h1>` line!):
Let's add a link in `mysite/templates/mysite/base.html` near the button for adding new posts (just above `<h1><a href="/">Django Girls Blog</a></h1>` line!):

<a href="{% url 'post_draft_list' %}" class="top-menu"><span class="glyphicon glyphicon-edit"></span></a>

Expand Down