Answer the question
In order to leave comments, you need to log in
Do I need to replace django.core.context_processors?
Hello.
I'm testing django and the following message appears (I have django 1.9.2):
"django.core.context_processors is deprecated in favor of django.template.context_processors"
As a result, if I change in
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [os.path.join(BASE_DIR, 'templates')]
,
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
# 'django.core.context_processors.request', - убираю старый
'django.template.context_processors' - ставлю новый
],
},
},
]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question