Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.5.x] Fixed #20247 - Added some missing paths in the tutorial.

Thanks gsavix for the suggestion and patch.

Backport of aad5661 from master.
  • Loading branch information...
commit 6e3b80239e9a066ac2e9d10212196acbc2e6d35c 1 parent 991ce52
Tim Graham authored April 12, 2013
13  docs/intro/tutorial01.txt
@@ -264,11 +264,12 @@ that, run the following command:
264 264
 
265 265
     python manage.py syncdb
266 266
 
267  
-The :djadmin:`syncdb` command looks at the :setting:`INSTALLED_APPS` setting and
268  
-creates any necessary database tables according to the database settings in your
269  
-:file:`settings.py` file. You'll see a message for each database table it
270  
-creates, and you'll get a prompt asking you if you'd like to create a superuser
271  
-account for the authentication system. Go ahead and do that.
  267
+The :djadmin:`syncdb` command looks at the :setting:`INSTALLED_APPS` setting
  268
+and creates any necessary database tables according to the database settings
  269
+in your :file:`mysite/settings.py` file. You'll see a message for each
  270
+database table it creates, and you'll get a prompt asking you if you'd like to
  271
+create a superuser account for the authentication system. Go ahead and do
  272
+that.
272 273
 
273 274
 If you're interested, run the command-line client for your database and type
274 275
 ``\dt`` (PostgreSQL), ``SHOW TABLES;`` (MySQL), or ``.schema`` (SQLite) to
@@ -532,7 +533,7 @@ API Django gives you. To invoke the Python shell, use this command:
532 533
 
533 534
 We're using this instead of simply typing "python", because :file:`manage.py`
534 535
 sets the ``DJANGO_SETTINGS_MODULE`` environment variable, which gives Django
535  
-the Python import path to your :file:`settings.py` file.
  536
+the Python import path to your :file:`mysite/settings.py` file.
536 537
 
537 538
 .. admonition:: Bypassing manage.py
538 539
 
14  docs/intro/tutorial02.txt
@@ -109,9 +109,9 @@ Make the poll app modifiable in the admin
109 109
 
110 110
 But where's our poll app? It's not displayed on the admin index page.
111 111
 
112  
-Just one thing to do: We need to tell the admin that ``Poll``
113  
-objects have an admin interface. To do this, create a file called
114  
-``admin.py`` in your ``polls`` directory, and edit it to look like this::
  112
+Just one thing to do: we need to tell the admin that ``Poll``
  113
+objects have an admin interface. To do this, open the :file:`polls/admin.py`
  114
+file, and edit it to look like this::
115 115
 
116 116
     from django.contrib import admin
117 117
     from polls.models import Poll
@@ -375,7 +375,7 @@ of an arbitrary method is not supported. Also note that the column header for
375 375
 underscores replaced with spaces), and that each line contains the string
376 376
 representation of the output.
377 377
 
378  
-You can improve that by giving that method (in ``models.py``) a few
  378
+You can improve that by giving that method (in :file:`polls/models.py`) a few
379 379
 attributes, as follows::
380 380
 
381 381
     class Poll(models.Model):
@@ -386,8 +386,8 @@ attributes, as follows::
386 386
         was_published_recently.boolean = True
387 387
         was_published_recently.short_description = 'Published recently?'
388 388
 
389  
-Edit your admin.py file again and add an improvement to the Poll change list page: Filters. Add the
390  
-following line to ``PollAdmin``::
  389
+Edit your :file:`polls/admin.py` file again and add an improvement to the Poll
  390
+change list page: Filters. Add the following line to ``PollAdmin``::
391 391
 
392 392
     list_filter = ['pub_date']
393 393
 
@@ -445,7 +445,7 @@ live anywhere on your filesystem that Django can access. (Django runs as
445 445
 whatever user your server runs.) However, keeping your templates within the
446 446
 project is a good convention to follow.
447 447
 
448  
-Open your settings file (``mysite/settings.py``, remember) and  add a
  448
+Open your settings file (:file:`mysite/settings.py`, remember) and add a
449 449
 :setting:`TEMPLATE_DIRS` setting::
450 450
 
451 451
     TEMPLATE_DIRS = (

0 notes on commit 6e3b802

Please sign in to comment.
Something went wrong with that request. Please try again.