﻿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
20312	Overriding template in app's templates directory	Nikolay	nobody	"Django does not override templates placed in ""<app>/templates"" directory.
Maybe, ""django.template.loaders.app_directories.Loader"" works incorrectly?

Example:
There is a template ""base_site.html"" in django/contrib/admin/templates/admin/
In project we have app ""admin"" with ""templates/admin/base_site.html""
We expect to see content of project's template but see Django's default.
(django/contrib/admin/templates/admin/base_site.html instead of project's).
In settings.py ""django.template.loaders.filesystem.Loader"" has greater priority then ""app_directories.Loader"" (default Django settings)

I created demo project (in attachment).

Follow this instruction to reproduce bug:
1. syncdb to make django admin site working
2. run development server
3. open http://localhost:8000/admin/
You'll see normal login form with title ""Django administration""
4. Remove underscore from ""override_demo/templates_"" directory name
5. Refresh page in browser.
You'll see title ""MyOwnSite name"" as expected.
"	Bug	closed	Template system	1.5	Normal	invalid	template, override	bmispelon@…	Unreviewed	0	0	0	0	0	0
