diff options
| author | Simon Meers <simon@simonmeers.com> | 2010-10-09 07:48:09 +0000 |
|---|---|---|
| committer | Simon Meers <simon@simonmeers.com> | 2010-10-09 07:48:09 +0000 |
| commit | 824ca0d6e560684bd0c09b09afece2586176a2c7 (patch) | |
| tree | dad6c08d60e7aa211da6ee2d00ca7693295083b7 /docs/intro/tutorial02.txt | |
| parent | b2bd6c9d56092ed4f7a3436de764baf9e44b6f12 (diff) | |
[1.2.X] Fixed #14255 -- factor project name out of app imports in tutorial. Thanks to adamend for the report and initial patch.
Backport of r14066 from trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14067 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/intro/tutorial02.txt')
| -rw-r--r-- | docs/intro/tutorial02.txt | 4 |
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) |
