I recently upgraded a project from Django 1.3 to 1.4, and that seems to have broken my context processor.
In myapp/myapp/processors.py
:
def currentPath(request):
return {'current_path': request.get_full_path()}
In myapp/myapp/settings.py
:
from django.conf import global_settings
global_settings.TEMPLATE_CONTEXT_PROCESSORS += (
'myapp.processors.currentPath',
'django.core.context_processors.request',
)
In any template, {{ current_path }}
is expected -- and did, until the upgrade, return the current path. Now, it is not getting processed at all. I'm absolutely stuck here.