From 58531da012e2b5c4a51b91078d4b7337c1b9f1c5 Mon Sep 17 00:00:00 2001 From: Raffaella Suardini Date: Tue, 2 Jun 2026 21:42:02 +0200 Subject: [PATCH] chore: removed old import --- en/django_orm/README.md | 17 ----------------- 1 file changed, 17 deletions(-) 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()