Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed #16680 -- Used single quotes for the TEMPLATE_DIRS examples in …
…part 2 of the tutorial to be consistent with the settings.py file generated by the startproject command. Thanks, Michael Tomkins.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16660 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
jphalip committed Aug 23, 2011
1 parent a5cbb89 commit 966bbd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/intro/tutorial02.txt
Expand Up @@ -405,14 +405,14 @@ By default, :setting:`TEMPLATE_DIRS` is empty. So, let's add a line to it, to
tell Django where our templates live:: tell Django where our templates live::


TEMPLATE_DIRS = ( TEMPLATE_DIRS = (
"/home/my_username/mytemplates", # Change this to your own directory. '/home/my_username/mytemplates', # Change this to your own directory.
) )


Now copy the template ``admin/base_site.html`` from within the default Django Now copy the template ``admin/base_site.html`` from within the default Django
admin template directory in the source code of Django itself admin template directory in the source code of Django itself
(``django/contrib/admin/templates``) into an ``admin`` subdirectory of (``django/contrib/admin/templates``) into an ``admin`` subdirectory of
whichever directory you're using in :setting:`TEMPLATE_DIRS`. For example, if whichever directory you're using in :setting:`TEMPLATE_DIRS`. For example, if
your :setting:`TEMPLATE_DIRS` includes ``"/home/my_username/mytemplates"``, as your :setting:`TEMPLATE_DIRS` includes ``'/home/my_username/mytemplates'``, as
above, then copy ``django/contrib/admin/templates/admin/base_site.html`` to above, then copy ``django/contrib/admin/templates/admin/base_site.html`` to
``/home/my_username/mytemplates/admin/base_site.html``. Don't forget that ``/home/my_username/mytemplates/admin/base_site.html``. Don't forget that
``admin`` subdirectory. ``admin`` subdirectory.
Expand Down

0 comments on commit 966bbd4

Please sign in to comment.