MCPcopy
hub / github.com/django/django / __init__

Method __init__

django/template/backends/base.py:11–24  ·  view source on GitHub ↗

Initialize the template engine. `params` is a dict of configuration settings.

(self, params)

Source from the content-addressed store, hash-verified

9 # (except for from_string which is optional).
10
11 def __init__(self, params):
12 """
13 Initialize the template engine.
14
15 `params` is a dict of configuration settings.
16 """
17 params = params.copy()
18 self.name = params.pop("NAME")
19 self.dirs = list(params.pop("DIRS"))
20 self.app_dirs = params.pop("APP_DIRS")
21 if params:
22 raise ImproperlyConfigured(
23 "Unknown parameters: {}".format(", ".join(params))
24 )
25
26 def check(self, **kwargs):
27 return []

Callers

nothing calls this directly

Calls 5

copyMethod · 0.45
popMethod · 0.45
formatMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected