python - ImportError: cannot import name 'TEMPLATE_CONTEXT_PROCESSORS' -


i tried use django-endless-pagination https://django-endless-pagination.readthedocs.io/en/latest/start.html#quickstart , follow tutorial

i wrote:

from django.conf.global_settings import template_context_processors template_context_processors += (     'django.core.context_processors.request', ) 

and got error:

from django.conf.global_settings import template_context_processors importerror: cannot import name 'template_context_processors' 

what do?

the docs of endless pagination not updated. template_context_processors deprecated of django 1.8 , removed in 1.10. please refer upgrade https://docs.djangoproject.com/en/1.10/ref/templates/upgrading/, shows place context processors.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -