簡體   English   中英

dajaxice的django / python TEMPLATE_LOADER錯誤

[英]django/python TEMPLATE_LOADER error for dajaxice

我想使用django / djanxice並在setup.py,url.py等中進行設置...

但是當我運行服務器時,會發生錯誤。

/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"

我用谷歌搜索,但找不到這種錯誤。

任何人都可以幫助為什么python安裝不支持此Templat_Loaders?

我的python版本是2.7.3,使用OS X v10.8

django.template.loaders.eggs.Loader.egg資源加載器使用setuptools軟件包中的pkg_resources模塊(如果有)。 如果pkg_resources在您的系統上不可用,您將收到此異常。

setuptools是與Python解釋器分開的安裝。

您應該按照此鏈接上的說明安裝setuptools。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM