1
0
mirror of https://github.com/django/django.git synced 2025-10-28 08:06:09 +00:00

Removed private API find_template.

It wasn't documented and it wasn't used anywhere, except in a few tests
that don't test it specifically and can be rewritten with get_template.
This commit is contained in:
Aymeric Augustin
2014-11-27 21:39:33 +01:00
parent 4ea43ac915
commit 5523e4cdbb
3 changed files with 8 additions and 9 deletions

View File

@@ -17,10 +17,6 @@ class LoaderOrigin(Origin):
return self.loader(self.loadname, self.dirs)[0]
def find_template(*args, **kwargs):
return Engine.get_default().find_template(*args, **kwargs)
def get_template(template_name, dirs=_dirs_undefined, using=None):
"""
Loads and returns a template for the given name.