diff --git a/en/django_orm/README.md b/en/django_orm/README.md index b14ceb944c7..a924bb29e4a 100644 --- a/en/django_orm/README.md +++ b/en/django_orm/README.md @@ -34,23 +34,6 @@ You're now in Django's interactive console. It's just like the Python prompt, bu Let's try to display all of our posts first. You can do that with the following command: -{% filename %}command-line{% endfilename %} -```python ->>> Post.objects.all() -Traceback (most recent call last): - File "", line 1, in -NameError: name 'Post' is not defined -``` - -Oops! An error showed up. It tells us that there is no Post. It's correct – we forgot to import it first! - -{% filename %}command-line{% endfilename %} -```python ->>> from blog.models import Post -``` - -We import the model `Post` from `blog.models`. Let's try displaying all posts again: - {% filename %}command-line{% endfilename %} ```python >>> Post.objects.all()