Django / python TEMPLATE_LOADER error for dajaxice

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

but an error occurs when starting the server.

/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 could not find such an error.

Can anyone help why installing python does not support this Templat_Loaders?

My python version is 2.7.3 using OS X v10.8

+4
source share
1 answer

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

setuptools is a separate installation from the Python interpreter.

You must install setuptools as instructed in this link .

+2
source

Source: https://habr.com/ru/post/1440626/


All Articles