{{{
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# BASE_DIR points to: ...\mysite\
# The tutorial assumes that it points to: ...\mysite\mysite
}}}
Hence the code in question should be changed to:
{{{
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [os.path.join(os.path.join(BASE_DIR, 'basic'),
'templates')], #This line has been changed
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/29990>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: assigned => closed
* resolution: => invalid
Comment:
I think you made a mistake. The instructions say, "Create a `templates`
directory in your project directory (the one that contains `manage.py`)".
I'm not sure where the 'basic' directory in your suggestion comes from.
--
Ticket URL: <https://code.djangoproject.com/ticket/29990#comment:1>
Comment (by Shrey):
Yep. Now I see that it was a mistake made by me. And if the docs were to
be updated the name mysite would be used instead of basic.
--
Ticket URL: <https://code.djangoproject.com/ticket/29990#comment:2>