Skip to content

Commit 78b499d

Browse files
authored
Update README.md
It's not true that the "simplest" *view* can look like this, because the import will still be needed. I am aware that it is mentioned before but one of the girls in my group removed it, since that's apparently the simplest the *view* can look like.
1 parent e2e33d8 commit 78b499d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

en/django_views/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ The simplest *view* can look like this:
2525

2626
{% filename %}blog/views.py{% endfilename %}
2727
```python
28+
from django.shortcuts import render
29+
2830
def post_list(request):
2931
return render(request, 'blog/post_list.html', {})
3032
```

0 commit comments

Comments
 (0)