4

I want to use django / djanxice and have set it up in setup.py, url.py, etc...

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?

My python version is 2.7.3, using OS X v10.8

Thai Tran
  • 9,815
  • 7
  • 43
  • 64
user1725454
  • 51
  • 1
  • 3

1 Answers1

2

The .egg resource loader from django.template.loaders.eggs.Loader uses the pkg_resources module from the setuptools package if available. If pkg_resources is not available on your system you will get this exception.

setuptools is a separate installation from the Python interpreter.

You should install setuptools as per the instructions at this link.

Austin Phillips
  • 15,228
  • 2
  • 51
  • 50