[英]django/python TEMPLATE_LOADER error for dajaxice
I want to use django / djanxice and have set it up in setup.py, url.py, etc... 我想使用django / djanxice并在setup.py,url.py等中进行设置...
but when I run the server, error occurs. 但是当我运行服务器时,会发生错误。
/Library/Python/2.7/site-packages/django/template/loader.py:113: UserWarning: Your TEMPLATE_LOADERS setting includes 'django.template.loaders.eggs.Loader', but your Python installation doesn't support that type of template loading. Consider removing that line from TEMPLATE_LOADERS.
warnings.warn("Your TEMPLATE_LOADERS setting includes %r, but your Python installation doesn't support that type of template loading. Consider removing that line from TEMPLATE_LOADERS." % loader)
No handlers could be found for logger "dajaxice"
I googled, but couldn't find such error. 我用谷歌搜索,但找不到这种错误。
Anyone can help why python installation does not support this Templat_Loaders? 任何人都可以帮助为什么python安装不支持此Templat_Loaders?
My python version is 2.7.3, using OS X v10.8 我的python版本是2.7.3,使用OS X v10.8
The .egg
resource loader from django.template.loaders.eggs.Loader
uses the pkg_resources
module from the setuptools package if available. django.template.loaders.eggs.Loader
的.egg
资源加载器使用setuptools软件包中的pkg_resources
模块(如果有)。 If pkg_resources
is not available on your system you will get this exception. 如果pkg_resources
在您的系统上不可用,您将收到此异常。
setuptools is a separate installation from the Python interpreter. setuptools是与Python解释器分开的安装。
You should install setuptools as per the instructions at this link . 您应该按照此链接上的说明安装setuptools。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.