Skip to content Skip to sidebar Skip to footer

Django Tables 2: Error Django.template.context_processors.request

I installed the module tables 2 and i have the next problem: Exception Value: Tag {% querystring %} requires django.template.context_processors.request to be in the template

Solution 1:

The render_to_response shortcut is not recommended any more.

Use the render shortcut instead, so that the context processors are used.

return render(request, 'inicio.html', {'llamadas': llamadas})

Solution 2:

There is 2 context_processors.request in your settings:

'django.core.context_processors.request',

'django.template.context_processors.request',

maybe only one is necessary...

In onae of my projects I use only: 'django.core.context_processors.request', but the variable in the template, your llamadas, is an objet of type TableReport.

Post a Comment for "Django Tables 2: Error Django.template.context_processors.request"