class locmem.Loader
Loads templates from a Python dictionary. This is useful for testing.
This loader takes a dictionary of templates as its first argument:
1 2 3 4 5 6 7 8 9 10 | TEMPLATES = [{ 'BACKEND' : 'django.template.backends.django.DjangoTemplates' , 'OPTIONS' : { 'loaders' : [ ( 'django.template.loaders.locmem.Loader' , { 'index.html' : 'content here' , }), ], }, }] |
This loader is disabled by default.
Django uses the template loaders in order according to the 'loaders'
option. It uses each loader until a loader finds a match.
Please login to continue.