django新手,我从字符串中加载模板,
from django.conf import settings
from django.template import Template, Context
settings.configure()
a= Template(template_variable)
但获得例外:
"No DjangoTemplates backend is configured.")
ImproperlyConfigured: No DjangoTemplates backend is configured.