I'm writing a simple site to display statistics for some data, and I've got an app called "stats", that I'd like to write default templates for (places in stats/templates/stats), but I'd like these to be overridable in the same way that the templates for the admin app are. IE: If I put a stats/view.html in my project's templates directory, it would be used rather than the one in my apps directory. I can't seem to quite figure out how to do this. How can I get Django to search the project's TEMPLATE_DIRS before it hits up the apps?
Edit: Found the problem, saw someone's tutorial for setting the template directories using the os module. They had:
TEMPLATE_DIRS = (
os.path.join(os.path.basename(__file__), 'templates')
)
Which should be:
TEMPLATE_DIRS = (
os.path.join(os.path.dirname(__file__), 'templates')
)