﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
20480	Change to django tutorial docs	cspears2002@…	nobody	"Hi,

I was wondering if we can update the documentation here.

[https://docs.djangoproject.com/en/dev/intro/tutorial02/#customize-the-admin-look-and-feel]

Specifically, I am concerned about the part of the documentation that reads as follows:

Open your settings file (mysite/settings.py, remember) and add a TEMPLATE_DIRS setting:

{{{
TEMPLATE_DIRS = [os.path.join(BASE_DIR, 'templates')]
}}}

TEMPLATE_DIRS is an iterable of filesystem directories to check when loading Django templates; it’s a search path.

If I just add the line:

{{{
TEMPLATE_DIRS = [os.path.join(BASE_DIR, 'templates')]
}}}

to the settings.py file, then I will get an error message.

The code that needs to get added to the settings.py file should like something like this:


{{{
import os.path

BASE_DIR = 'C:\Users\Chris\Documents\django_dev\mysite'
TEMPLATE_DIRS = [os.path.join(BASE_DIR, 'templates')]
}}}
"	Uncategorized	closed	Documentation	1.4	Normal	invalid			Unreviewed	0	0	0	0	0	0
