Fixed a broken ImproperlyConfigured error message
git-svn-id: http://code.djangoproject.com/svn/django/trunk@11923 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
20ad30713e
commit
c804179126
|
@ -80,7 +80,7 @@ def find_template_loader(loader):
|
||||||
module, attr = loader.rsplit('.', 1)
|
module, attr = loader.rsplit('.', 1)
|
||||||
try:
|
try:
|
||||||
mod = import_module(module)
|
mod = import_module(module)
|
||||||
except ImportError:
|
except ImportError, e:
|
||||||
raise ImproperlyConfigured('Error importing template source loader %s: "%s"' % (loader, e))
|
raise ImproperlyConfigured('Error importing template source loader %s: "%s"' % (loader, e))
|
||||||
try:
|
try:
|
||||||
TemplateLoader = getattr(mod, attr)
|
TemplateLoader = getattr(mod, attr)
|
||||||
|
|
Loading…
Reference in New Issue