summaryrefslogtreecommitdiff
path: root/docs/intro/tutorial02.txt
diff options
context:
space:
mode:
authorSimon Meers <simon@simonmeers.com>2010-10-09 07:45:52 +0000
committerSimon Meers <simon@simonmeers.com>2010-10-09 07:45:52 +0000
commitd81faf356c53c0cf099d48551e1d3982135f2db9 (patch)
tree1164fc277ebe85e662d100452412ca2aa8f10459 /docs/intro/tutorial02.txt
parent307e71a734a0542020c87f4589df7a182ee29606 (diff)
Fixed #14255 -- factor project name out of app imports in tutorial. Thanks to adamend for the report and initial patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14066 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/intro/tutorial02.txt')
-rw-r--r--docs/intro/tutorial02.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/intro/tutorial02.txt b/docs/intro/tutorial02.txt
index d43df9ed53..c80d87d835 100644
--- a/docs/intro/tutorial02.txt
+++ b/docs/intro/tutorial02.txt
@@ -103,7 +103,7 @@ Just one thing to do: We need to tell the admin that ``Poll``
objects have an admin interface. To do this, create a file called
``admin.py`` in your ``polls`` directory, and edit it to look like this::
- from mysite.polls.models import Poll
+ from polls.models import Poll
from django.contrib import admin
admin.site.register(Poll)
@@ -239,7 +239,7 @@ Yet.
There are two ways to solve this problem. The first is to register ``Choice``
with the admin just as we did with ``Poll``. That's easy::
- from mysite.polls.models import Choice
+ from polls.models import Choice
admin.site.register(Choice)