Это то, что я получаю в моем терминале, когда я запустить сервер локально:Django контекста процессора отсутствует, пока они находятся в настройках
Required context processor django_facebook.context_processors.facebook wasnt found
Required context processor django.core.context_processors.request wasnt found
/Users/iam-tony/.envs/party_project/lib/python3.4/importlib/_bootstrap.py:321: RemovedInDjango19Warning: The django.forms.util module has been renamed. Use django.forms.utils instead.
return f(*args, **kwds)
Но вот мои настройки и оба context_processors есть:
TEMPLATES = [
{
# See: https://docs.djangoproject.com/en/dev/ref/settings/#std:setting-TEMPLATES-BACKEND
'BACKEND': 'django.template.backends.django.DjangoTemplates',
# See: https://docs.djangoproject.com/en/dev/ref/settings/#template-dirs
'DIRS': [
str(APPS_DIR.path('templates')),
],
'OPTIONS': {
# See: https://docs.djangoproject.com/en/dev/ref/settings/#template-debug
'debug': DEBUG,
# See: https://docs.djangoproject.com/en/dev/ref/settings/#template-loaders
# https://docs.djangoproject.com/en/dev/ref/templates/api/#loader-types
'loaders': [
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
],
# See: https://docs.djangoproject.com/en/dev/ref/settings/#template-context-processors
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.template.context_processors.i18n',
'django.template.context_processors.media',
'django.template.context_processors.static',
'django.template.context_processors.tz',
'django.contrib.messages.context_processors.messages',
# Your stuff: custom template context processors go here
#django_facebook context procesor:
'django_facebook.context_processors.facebook',
],
},
},
]
Я использую cookiecutter и Django1.8. Я был на этом несколько дней, но я не могу найти подобную статью об этом.
Установили ли вы 'django_facebook'? – sobolevn
@sobolevn да у меня есть! –
У вас есть несколько файлов настроек? Вы переписывали свои процессоры контекста в другом месте? – smilebomb