﻿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
24809	Won't load templates from apps directory without a model	Camilo Ernesto Forero	nobody	"When creating a new app, the templates loader won't look at the <appname>/templates directory if there are no models of it migrated to the database, throwing a TemplateDoesNotExist exception and showing in the postmortem that it only looked for them in the 'auth' and 'admin'  application template directories. The new app had already been added to the 'INSTALLED_APPS' section of the settings.py file. Doing a makemigrations and a migrate did nothing

This was fixed after I created a dummy class in <appname>/models.py, and did a makemigrations->migrate. So my guess is that the template loader relies somehow in the database, and if there is no reference to an app on it then it won't look at it's templates directories despite it being on the INSTALLED_APPS tuple. So I don't know if that's intended behaviour or not, but here I call it to your attention."	Bug	closed	Template system	1.8	Normal	invalid	app loader		Unreviewed	0	0	0	0	0	0
