mirror of https://github.com/estheruary/subjugate
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
349 B
Python
12 lines
349 B
Python
from django.template.loaders import filesystem
|
|
from django.template.utils import get_app_template_dirs
|
|
|
|
|
|
class Loader(filesystem.Loader):
|
|
def __init__(self, engine, app_dirname, *args):
|
|
self.app_dirname = app_dirname
|
|
super().__init__(engine, *args)
|
|
|
|
def get_dirs(self):
|
|
return get_app_template_dirs(self.app_dirname)
|