尝试加载' material.admin.templatetags.material_admin'时引发的ImportError:无法导入名称布局

时间:2017-08-14 18:09:44

标签: python django

Traceback (most recent call last):
  File "/home/jeremie/.virtualenvs/venv/lib/python2.7/site-packages/django/contrib/staticfiles/handlers.py", line 63, in __call__
    return self.application(environ, start_response)
  File "/home/jeremie/.virtualenvs/venv/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 170, in __call__
    response = self.get_response(request)
  File "/home/jeremie/.virtualenvs/venv/lib/python2.7/site-packages/django/core/handlers/base.py", line 124, in get_response
    response = self._middleware_chain(request)
  File "/home/jeremie/.virtualenvs/venv/lib/python2.7/site-packages/django/core/handlers/exception.py", line 41, in inner
    response = response_for_exception(request, exc)
 ...
  File "/home/jeremie/.virtualenvs/venv/lib/python2.7/site-packages/django/template/backends/django.py", line 30, in __init__
    options['libraries'] = self.get_templatetag_libraries(libraries)
  File "/home/jeremie/.virtualenvs/venv/lib/python2.7/site-packages/django/template/backends/django.py", line 48, in get_templatetag_libraries
    libraries = get_installed_libraries()
  File "/home/jeremie/.virtualenvs/venv/lib/python2.7/site-packages/django/template/backends/django.py", line 113, in get_installed_libraries
    for name in get_package_libraries(pkg):
  File "/home/jeremie/.virtualenvs/venv/lib/python2.7/site-packages/django/template/backends/django.py", line 130, in get_package_libraries
    "trying to load '%s': %s" % (entry[1], e)
InvalidTemplateLibrary: Invalid template library specified. ImportError raised when trying to load 'material.admin.templatetags.material_admin': cannot import name Layout

当我运行命令python manage.py runserver_plus时,我收到此错误,但我无法查看如何修复它。我可以修改什么才能起作用?

0 个答案:

没有答案