Skip to content

Commit aad5661

Browse files
committed
Fixed #20247 - Added some missing paths in the tutorial.
Thanks gsavix for the suggestion and patch.
1 parent 6d96831 commit aad5661

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

docs/intro/tutorial01.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ that, run the following command:
262262

263263
The :djadmin:`syncdb` command looks at the :setting:`INSTALLED_APPS` setting
264264
and creates any necessary database tables according to the database settings
265-
in your :file:`mysqlite/settings.py` file. You'll see a message for each
265+
in your :file:`mysite/settings.py` file. You'll see a message for each
266266
database table it creates, and you'll get a prompt asking you if you'd like to
267267
create a superuser account for the authentication system. Go ahead and do
268268
that.
@@ -525,7 +525,7 @@ API Django gives you. To invoke the Python shell, use this command:
525525

526526
We're using this instead of simply typing "python", because :file:`manage.py`
527527
sets the ``DJANGO_SETTINGS_MODULE`` environment variable, which gives Django
528-
the Python import path to your :file:`settings.py` file.
528+
the Python import path to your :file:`mysite/settings.py` file.
529529

530530
.. admonition:: Bypassing manage.py
531531

docs/intro/tutorial02.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ Make the poll app modifiable in the admin
7878
But where's our poll app? It's not displayed on the admin index page.
7979

8080
Just one thing to do: we need to tell the admin that ``Poll``
81-
objects have an admin interface. To do this, open the file called
82-
``admin.py`` in your ``polls`` directory, and edit it to look like this::
81+
objects have an admin interface. To do this, open the :file:`polls/admin.py`
82+
file, and edit it to look like this::
8383

8484
from django.contrib import admin
8585
from polls.models import Poll
@@ -339,7 +339,7 @@ of an arbitrary method is not supported. Also note that the column header for
339339
underscores replaced with spaces), and that each line contains the string
340340
representation of the output.
341341

342-
You can improve that by giving that method (in ``models.py``) a few
342+
You can improve that by giving that method (in :file:`polls/models.py`) a few
343343
attributes, as follows::
344344

345345
class Poll(models.Model):
@@ -350,8 +350,8 @@ attributes, as follows::
350350
was_published_recently.boolean = True
351351
was_published_recently.short_description = 'Published recently?'
352352

353-
Edit your admin.py file again and add an improvement to the Poll change list page: Filters. Add the
354-
following line to ``PollAdmin``::
353+
Edit your :file:`polls/admin.py` file again and add an improvement to the Poll
354+
change list page: Filters. Add the following line to ``PollAdmin``::
355355

356356
list_filter = ['pub_date']
357357

@@ -409,7 +409,7 @@ live anywhere on your filesystem that Django can access. (Django runs as
409409
whatever user your server runs.) However, keeping your templates within the
410410
project is a good convention to follow.
411411

412-
Open your settings file (``mysite/settings.py``, remember) and add a
412+
Open your settings file (:file:`mysite/settings.py`, remember) and add a
413413
:setting:`TEMPLATE_DIRS` setting::
414414

415415
TEMPLATE_DIRS = [os.path.join(BASE_DIR, 'templates')]

0 commit comments

Comments
 (0)