简体   繁体   English

dajaxice的django / python TEMPLATE_LOADER错误

[英]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.

相关问题 导入模板源加载器pyjade.ext.django.Loader时出错 - Error importing template source loader pyjade.ext.django.Loader Django“TemplateDoesNotExist”错误但“使用加载器django.template.loaders.app_directories.Loader”文件存在 - Django "TemplateDoesNotExist " Error but "Using loader django.template.loaders.app_directories.Loader" File Exists django-dajaxice覆盖XMLHttpRequest - django-dajaxice overriding XMLHttpRequest Django / Dajaxice和国际字符问题 - Problem with Django/Dajaxice and international characters django-生成验证表单的dajaxice函数(dajaxice_register问题) - django - Generate a dajaxice function that validates forms (dajaxice_register issue) Django项目模板加载器设置 - Django project template loader setup Django Template Loader没有达到app模板 - Django Template Loader not reaching app template Django App中的Dajaxice自动发现(无法导入名称dajaxice_autodiscover) - Dajaxice Autodiscover in Django App (cannot import name dajaxice_autodiscover) Python导入:从Django导入模板:模块对象“模板”没有属性“加载器” - Python import: from django import template: module object 'template' has no attribute 'loader' 在Django的模板加载器中预处理SHPAML? - Preprocess SHPAML in Django's template loader?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM