4

私は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を使用しています

4

1 に答える 1

2

.eggリソース ローダーは、利用可能な場合、 setuptoolsパッケージのモジュールをdjango.template.loaders.eggs.Loader使用します。システムで が利用できない場合、この例外が発生します。pkg_resourcespkg_resources

setuptools は、Python インタープリターとは別のインストールです。

このリンクの指示に従って setuptools をインストールする必要があります。

于 2013-01-29T01:51:48.610 に答える