Hi Guys,
The section talks about how django templates are loaded by default if you put them in the correct path:
def auth(request):
return render(request, 'g_auth/index.html')
but when I used a similar example django complained about not being able to find the templates. I ended up having to change the django settings file 'DIRS':
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [
os.path.join(BASE_DIR, 'g_auth/templates')
],
'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',
],
},
},
]
Hoping to get this clarified as for a beginner this would be quite complicated(assuming I haven't missed the boat completely here)
Cheers,
Justin